maruku

I need to go from HTML to markdown, any suggestion?

戏子无情 提交于 2020-01-01 05:31:13
问题 I'm using Maruku, to convert from Markdown (superset) to HTML, do you know how can I do to convert from HTML to Markdown? 回答1: Google found a ruby script called reverse_markdown. It seems to do what you are looking for. 回答2: try html2markdown http://rubygems.org/gems/html2markdown And now, I found http://markitdown.medusis.com/ is very useful and quick. 来源: https://stackoverflow.com/questions/1751622/i-need-to-go-from-html-to-markdown-any-suggestion

textile and maruku problem

别来无恙 提交于 2019-12-24 07:38:03
问题 I've developed custom filters for HAML (http://github.com/alec-c4/cb-haml-filters) and have a small problem with textile and maruku. Maybe you can help me with this Problem with textile with code %h2 Textile test :cbtextile h4. YouTube video http://www.youtube.com/watch?v=0_IXrjqKbE4&feature=player_embedded after parsing i see embeded youtube video inside h4 tag (there are 1 empty line between h4. and http://youtube... i mean \n\n). But on TWO empty lines (\n\n\n) - all renders correctly. In

Maruku markdown deletes any html in list item

痴心易碎 提交于 2019-12-24 02:34:07
问题 Simple example here. Source: <span> hello </span> 1. <span> world </span> Target: <span> hello </span> <ol> <li /> </ol> Seems to happen no matter what tag I use. As far as I can tell from daring fireball's markdown documentation, this should be legal; span tags can appear anywhere. I am on Jekyll and do not know what layer is responsible for this (bug in Jekyll's markdown renderer, my not using markdown correctly, etc.) For good measure let's see what SO does with the same source: hello

Jekyll documentation to PDF with TOC

老子叫甜甜 提交于 2019-11-30 13:47:26
问题 I would like to write documentation using Jekyll with HTML and PDF outputs. Html can have a navigation but the PDF should have table of contents. Is there a free and easy way to do that? The HTML part is easy but I would like to use @media print CSS for making the PDF file. I have a few ideas how to do this. Use PrinceXML, unfortunately this is commercial product with a nasty price tag ~$500 Use WKHTMLTOPDF Use Maruku, since it is possible to do a PDF conversion using it I would like to have

Jekyll documentation to PDF with TOC

痞子三分冷 提交于 2019-11-30 08:45:32
I would like to write documentation using Jekyll with HTML and PDF outputs. Html can have a navigation but the PDF should have table of contents. Is there a free and easy way to do that? The HTML part is easy but I would like to use @media print CSS for making the PDF file. I have a few ideas how to do this. Use PrinceXML , unfortunately this is commercial product with a nasty price tag ~$500 Use WKHTMLTOPDF Use Maruku , since it is possible to do a PDF conversion using it I would like to have multiple pages HTML and single page PDF with a TOC. Any suggestions? Btw. Buildr has solved this

Embed javascript in markdown

社会主义新天地 提交于 2019-11-29 20:36:57
I'm using the Maruku markdown processor. I'd like this *blah* blah "blah" in [markdown](blah) <script src="http://code.jquery.com/jquery-1.4.2.min.js"></script> <script> ...do stuff... </script> but it complains when I render it with a multitude of errors. The first one being ___________________________________________________________________________ | Maruku tells you: +--------------------------------------------------------------------------- | Could you please format this better? | I see that "<script type='text/javascript'>" is left after the raw HTML. | At line 31 | raw_html |<script src

Embed javascript in markdown

て烟熏妆下的殇ゞ 提交于 2019-11-28 16:41:59
问题 I'm using the Maruku markdown processor. I'd like this *blah* blah "blah" in [markdown](blah) <script src="http://code.jquery.com/jquery-1.4.2.min.js"></script> <script> ...do stuff... </script> but it complains when I render it with a multitude of errors. The first one being ___________________________________________________________________________ | Maruku tells you: +--------------------------------------------------------------------------- | Could you please format this better? | I see