Stop escaping periods in markdown

This commit is contained in:
Adrià Arrufat committed 2026-02-16 21:29:57 +09:00
1 parent 425a36aa51
commit b49b2af11f
1 file changed
+1 -2
+1 -2
View File
@@ -382,7 +382,7 @@ fn renderText(text: []const u8, state: *State, writer: *std.Io.Writer) anyerror!
}
fn escapeMarkdown(writer: *std.Io.Writer, text: []const u8) !void {
// Escaping: \ ` * _ { } [ ] ( ) # + - . ! | < >
// Escaping: \ ` * _ { } [ ] ( ) # + - ! | < >
for (text) |c| {
switch (c) {
'\\',
@@ -398,7 +398,6 @@ fn escapeMarkdown(writer: *std.Io.Writer, text: []const u8) !void {
'#',
'+',
'-',
'.',
'!',
'|',
'<',