Ruby analyzer with WikiWord support?

I use git-wiki for my personal note store. It works very well, except that WikiWords are converted to links before the parsing step using a regular expression. This will ruin a lot of things, such as links that point to external wiki pages, or block quotes (if I quote something, I don't want WikiWord to change to a link).

Are there ruby ​​based Pardown markers that WikiLinks understands?

+8
git ruby markdown wiki
source share
1 answer

The best parser is the C-based one ( upskirt / sundown ), whose iteration of rubies is the red carpet:

https://github.com/tanoku/redcarpet

This is better for performance and security reasons.

For wiki links, pre-process them before sending the text to the markup parser.

+2
source share

All Articles