Can t activate redcloth already activated redcloth




















Or, if you wish, you can create a new formatter module that inherits from one of the existing ones so you can use super. Custom blocks can be detected by extending the formatter with the method name of the block you want to recognize.

Other custom input patterns, such as wiki links, can efficiently be pre-processed by gsubbing the text before handing it to RedCloth. Build a new formatter that outputs the format you want. Because Textile is infinitely superior! Just kidding. There are good uses for each.

Markdown is great for plain text documents that are to be read as plain text and might be converted to HTML , but Textile works better for me as a shortcut to HTML not published plain-text. I have my reasons for preferring Textile but I can see both sides. RedCloth started out as a Textile parser. Along the way, Markdown support was added and as a result, RedCloth suffered for several years. There were clashes between the two formats—not the least of which was the way line breaks were handled—and it added so much complexity that RedCloth gained a reputation for being buggy and slow.

RedCloth 4 was a total rewrite that brought it back to its Textile roots, fixed a lot of bugs, and made it roughly 40x faster. What would be interesting is a library that detects the format of the document and automatically switches parsers.

It has no indentation other than some tab characters to indent lists. Are you using HAML? That will automatically indent things unless you tell it not to. In Textile, two newline characters made with the return key start a new paragraph. Think poetry and addresses. Do I have rails version 2 or not? Maybe I have rails version 2 and a more advanced bundler?

Yes, I know it's bad to have such an old version of rails, I want to know if it's catastrophic to have such a mismatched if it is rails and bundler. If you use bundler, then you can get the version from bundle show [gemname]. Stina Stina 4 4 silver badges 2 2 bronze badges. I came to this question because I am trying to move to bundler probably many people also, because Heroku now requires this — GreenAsJade.

This is deprecated. Use bundle info [gemname] instead. SnapShot SnapShot 5, 4 4 gold badges 40 40 silver badges 37 37 bronze badges. There probably is a more direct way to find this out, but if you load up a console and require a specific version like so: gem 'RedCloth', '3. There's also a list in Gemfile.

Waseem Waseem 7, 7 7 gold badges 38 38 silver badges 51 51 bronze badges. Mani Mani 2, 3 3 gold badges 31 31 silver badges 69 69 bronze badges. John Hyland John Hyland 6, 26 26 silver badges 32 32 bronze badges. Mine just tells me what version of ruby, rails and environment I'm using. Sorry if that wasn't clear. Bilal A. Awan Bilal A. Awan 3 3 silver badges 6 6 bronze badges.

Sunil Shakya Sunil Shakya 4, 2 2 gold badges 13 13 silver badges 19 19 bronze badges. If you use bundler, then you can get the version using: bundle info [gemname]. In Gemfile , there should be the answer: gem 'rails', '4. Gemfile won't always explicitly declare a version number.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Visit chat. Linked Related Hot Network Questions.



0コメント

  • 1000 / 1000