mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
check-md: fix missing default_command when nofmt was set (#8591)
This commit is contained in:
parent
9a1da1a97b
commit
59c1c77bfe
@ -170,6 +170,8 @@ fn (mut f MDFile) parse_line(lnumber int, line string) {
|
||||
mut command := line.replace('```v', '').trim_space()
|
||||
if command == '' {
|
||||
command = default_command
|
||||
} else if command == 'nofmt' {
|
||||
command += ' $default_command'
|
||||
}
|
||||
f.current = VCodeExample{
|
||||
sline: lnumber
|
||||
|
Loading…
Reference in New Issue
Block a user