Better ruby markdown interpreter?

后端 未结 9 629
自闭症患者
自闭症患者 2020-12-02 10:11

I\'m trying to find a markdown interpreter class/module that I can use in a rakefile.

So far I\'ve found maruku, but I\'m a bit wary of beta releases.

Has an

相关标签:
9条回答
  • 2020-12-02 10:43

    RDiscount is Fast and simple to use.

    0 讨论(0)
  • 2020-12-02 10:46

    I believe BlueCloth is the most prominent one.

    0 讨论(0)
  • 2020-12-02 10:47

    Try RDiscount. BlueCloth is slow and buggy.

    0 讨论(0)
  • 2020-12-02 10:49

    If you need a fair example for how to use something like Kramdown in a rakefile there is a repo on github with code and articles in markdown.md that can be converted to html with Ruby code syntax highlighting but alas line numbers as well.(I would prefer to turn off line numbering)

    If anyone knows how to shut off the line numbering default please tell us.

    Anyway the link is https://github.com/elm-city-craftworks/practicing-ruby-manuscripts

    0 讨论(0)
  • 2020-12-02 10:50

    The benchmark in the answer given by casey use BlueCloth 1. BlueCloth 2 is the fastest these days : http://www.deveiate.org/projects/BlueCloth

    0 讨论(0)
  • 2020-12-02 10:57

    To ensure you're getting BlueCloth 2, install like this:

    gem install bluecloth
    

    Note that "bluecloth" should be in all lowercase, not camel case.

    Source: http://rubygems.org/gems/bluecloth

    0 讨论(0)
提交回复
热议问题