Skip to content

Commit

Permalink
Fixes #115
Browse files Browse the repository at this point in the history
  • Loading branch information
yuin committed Mar 25, 2020
1 parent ff84cd3 commit 785b85a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions extension/_test/table.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,26 @@ Foo|Bar
</tbody>
</table>
//= = = = = = = = = = = = = = = = = = = = = = = =//


10
//- - - - - - - - -//
foo|bar
---|---
`\` | second column
//- - - - - - - - -//
<table>
<thead>
<tr>
<th>foo</th>
<th>bar</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>\</code></td>
<td>second column</td>
</tr>
</tbody>
</table>
//= = = = = = = = = = = = = = = = = = = = = = = =//
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func FindClosure(bs []byte, opener, closure byte, codeSpan, allowNesting bool) i
if codeSpanCloser == codeSpanOpener {
codeSpanOpener = 0
}
} else if c == '\\' && i < len(bs)-1 && IsPunct(bs[i+1]) {
} else if codeSpanOpener == 0 && c == '\\' && i < len(bs)-1 && IsPunct(bs[i+1]) {
i += 2
continue
} else if codeSpan && codeSpanOpener == 0 && c == '`' {
Expand Down

0 comments on commit 785b85a

Please sign in to comment.