check-md: fix missing default_command when nofmt was set (#8591)
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