Markdown processor for Potmum
PotMarkdown is markdown processor for Potmum.
Add this line to your application’s Gemfile:
gem 'pot_markdown'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pot_markdown
require 'pot_markdown'
processor = PotMarkdown::Processor.new
context = {
safe_script_url: false
}
processor.call("# title\n\n Hello, **Potmum!** ...", context)
# => {
# toc: "<ul><li><a href=\"#id-title\">title ...",
# output: "<h1 id=\"id-title\">title</h1>...",
# mentioned_usernames: ['rutan', ...]
# }
anchor_icon
<i class="fa fa-link"></i>
checkbox_enable
disabled
to checkboxfalse
checkbox_class
<li>
's class with checkboxtask-list-item
sanitize_rule
sanitize_use_external
safe_iframe_url
safe_script_url
PotMarkdown used these filters.
please see html-pipeline documents 😃
Bug reports and pull requests are welcome on GitHub at https://github.com/rutan/pot_markdown