mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
Stop escaping periods in markdown
This commit is contained in:
@@ -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 {
|
||||
'#',
|
||||
'+',
|
||||
'-',
|
||||
'.',
|
||||
'!',
|
||||
'|',
|
||||
'<',
|
||||
|
||||
Reference in New Issue
Block a user