Skip to content

Commit f129494

Browse files
committed
fix: compilation errors
1 parent 2472d03 commit f129494

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/WebUIMarkdown/WebUIMarkdown.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ public struct HtmlRenderer: MarkupWalker {
628628
highlighted = highlighted.replacingOccurrences(
629629
of: commentPattern,
630630
with: "<span class=\"hl-comment\">$0</span>",
631-
options: [.regularExpression, .anchorsMatchLines]
631+
options: [.regularExpression]
632632
)
633633

634634
// Highlight strings (single and double quotes)
@@ -661,7 +661,7 @@ public struct HtmlRenderer: MarkupWalker {
661661
highlighted = highlighted.replacingOccurrences(
662662
of: pattern,
663663
with: "$1<span class=\"hl-command\">$2</span>",
664-
options: [.regularExpression, .anchorsMatchLines]
664+
options: [.regularExpression]
665665
)
666666
}
667667

@@ -703,7 +703,7 @@ public struct HtmlRenderer: MarkupWalker {
703703
highlighted = highlighted.replacingOccurrences(
704704
of: commentPattern,
705705
with: "<span class=\"hl-comment\">$0</span>",
706-
options: [.regularExpression, .anchorsMatchLines]
706+
options: [.regularExpression]
707707
)
708708

709709
// Highlight string literals with better regex

0 commit comments

Comments
 (0)