theory/text-markup

Add reStructuredText Support

Closed this issue · 7 comments

Possibly using Text::Restructured.

I suggest not to try to write/improve the parser: that would be time awfully wasted: use Python's docutils and just wrap the rst2html script. I believe it's a one-liner in perl.

[troll]
markdown sucks
[/troll]

:) srsly, any chance to fix it? http://pgxn.org/dist/italian_fts/

It is just a matter of installing python-docutils and executing rst2html < FILE.rst > FILE.html (there could be some configuration to control how/if to create the css, but I can give you a hand for this, if you tell me how do you want your output)

Not sure when I’ll have tuits for this. Maybe you could submit a pull request with the basic code in a new Text::Markup::reST module or something?

Ugh, the idea of bashing perl code is not the nicest. But I'm getting there's no way I can have this feature just asking, so I believe I will have to.

Out of curiosity: I remember you giving a try and not getting results: did you try using Text::Restructured and it didn't work or did you try something entirely different? Because if Text::Rest can work I can try using it and keep your module pure perl, otherwise, as I said, the best strategy I think would be using the reference Python implementation.

Yeah, I tried to use Test::Restructured, but couln't get it to build. Seems really buggy. I filed a bug report. Given that it seems to be an abandoned module, I think using the Python tools would be the best choice.

Ok, I'll stick to my plan then.

Superseded by issue #4.