md2review
md2review is a CLI tool to convert from Markdown into Re:VIEW (http://reviewml.org/ ). This command uses Redcarpet gem to parse markdown.
Usage
You can use the commmand md2review as:
$ md2review [options] your-document.md > your-document.re
Options
--version: show version--help: show help--render-header-offset = N: use offset of header levels--render-disable-image-caption: disable image caption; coverting into//indepimage--render-link-in-footnote: enable links in footnote.--render-enable-cmd: support//cmd{...//}forshell-sessionandconsoleblocks--render-math: support@<m>{...}and//texequation{...}--render-table-cation: support table caption before table likeTable: some captions--parse-no-intra-emphasis: do not parse emphasis inside of words.--parse-autolink: parse links even when they are not enclosed in<>characters.
Installation
Add this line to your application's Gemfile:
gem 'md2review'
And then execute:
$ bundle
Or install it yourself as:
$ gem install md2review
History
- 1.10.0
- add: option --image-table to support
//imgtablewith - fix: olist before/after ulist
- add: option --image-table to support
- 1.9.0
- fix: fix math support for complex cases
- 1.8.0
- add: option --version
- add: option --render-math to support
@<m>{...}and//texequation{\n...\n}\n - add: option --render-table-caption to support
Table: caption
- 1.7.0
- fix: when href in emphasis (@hanachin)
- fix: spaces before image block (@hanachin)
- fix: remove inline markup in href content (@hanachin)
- 1.6.0
- special attribute in header need a separator(U+0020) to distinguish from Re:VIEW inline markup (reported by @himajin315 and @yasulab)
- 1.5.0
- support language on code block
- add option --render-enable-cmd
- 1.4.0
- fix handling empty cell in //table
- support header attributes in PHP Markdown Extra
- 1.3.0
- allow images in list items (with @
) - add option --disable-image-caption
- allow 6th header level
- add option --render-link-in-footnote (by @masarakki)
- support inline markup in footnote (by @hamano)
- allow images in list items (with @
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
