forked from quantizor/markdown-to-jsx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix quantizor#258: Allow escaping pipes within tables
Should fix quantizor#258 A port of ariabuckles/simple-markdown@f32a628 to markdown-to-jsx. Previously, tables were parsed using String.prototype.split on pipe (`|`) characters. This commit changes table parsing to use a full parse() call, using a new `tableSeparator` rule to match tableSeparators. Because `tableSeparator` is now a rule, the `escapedText` rule can handle escaped pipes within the table, and the `codeInline` rule can handle inline code with pipes in it. Test plan: Added tests to index.compiler.spec.js
- Loading branch information
1 parent
5d44703
commit aad86c8
Showing
2 changed files
with
133 additions
and
24 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