Skip to content

Commit

Permalink
Add comment handling for Markdown
Browse files Browse the repository at this point in the history
Markdown renders to HTML, so HTML comments are valid comments in Markdown.
  • Loading branch information
jalseth committed Mar 26, 2023
1 parent ffa07dd commit b84cab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ func NewDefinedLanguages() *DefinedLanguages {
"LD Script": NewLanguage("LD Script", []string{"//"}, [][]string{{"/*", "*/"}}),
"LESS": NewLanguage("LESS", []string{"//"}, [][]string{{"/*", "*/"}}),
"Objective-C": NewLanguage("Objective-C", []string{"//"}, [][]string{{"/*", "*/"}}),
"Markdown": NewLanguage("Markdown", []string{}, [][]string{{"", ""}}),
"Markdown": NewLanguage("Markdown", []string{"<!--"}, [][]string{{"<!--", "-->"}}),
"Motoko": NewLanguage("Motoko", []string{"//"}, [][]string{{"/*", "*/"}}),
"Nix": NewLanguage("Nix", []string{"#"}, [][]string{{"/*", "*/"}}),
"NSIS": NewLanguage("NSIS", []string{"#", ";"}, [][]string{{"/*", "*/"}}),
Expand Down

0 comments on commit b84cab4

Please sign in to comment.