This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
forked from russross/blackfriday
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These function should *not* use the unicode tests, because they work on bytes. This can (and has) lead to thinking something is a "\r" while it is in fact part of a larger (2 byte) character and, thus, is in fact something completely different.
- Loading branch information
Showing
4 changed files
with
60 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package mmark | ||
|
||
import "testing" | ||
|
||
func TestIssueXXX(t *testing.T) { | ||
tests := []string{ | ||
"абвгдеёжзийклмнопрстуфх", | ||
"<p>абвгдеёжзийклмнопрстуфх</p>\n", | ||
} | ||
|
||
doTestsBlock(t, tests, 0) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
// Functions to parse block-level elements. | ||
|
||
package mmark | ||
|
||
import "log" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters