Hi there ! I needed a ''to_latex'' implementation to generate PDF in zena (a CMS http://zenadmin.org) through LaTeX. Here is a first draft for a ''to_latex'' implementation. There are some issues with tables, footnotes but the biggest issue is character escaped to their html entities (’). I have just started writing the tests. More to come soon. I will try to find a way to fix this without modifying too much of SuperRedCloth. (the patch applies on SR rev 245). Gaspard -------------- next part -------------- A non-text attachment was scrubbed... Name: to_latex.patch Type: application/octet-stream Size: 8463 bytes Desc: not available Url : http://rubyforge.org/pipermail/redcloth-upwards/attachments/20080227/ba28630b/attachment-0001.obj
Could you post this as a ticket on http://code.whytheluckystiff.net/ redcloth/newticket? You must create a RubyForge account and give yourself access at http://code.whytheluckystiff.net/access/ I''d like to have different formatters for XHTML and HTML, too, so yeah, SRC should be as formatter-agnostic as possible. On Feb 27, 2008, at 1:38 AM, Gaspard Bucher wrote:> Hi there ! > > I needed a ''to_latex'' implementation to generate PDF in zena (a CMS > http://zenadmin.org) through LaTeX. > > Here is a first draft for a ''to_latex'' implementation. > > There are some issues with tables, footnotes but the biggest issue is > character escaped to their html entities (’). I have just > started writing the tests. More to come soon. > > I will try to find a way to fix this without modifying too much of > SuperRedCloth. > > (the patch applies on SR rev 245). > > Gaspard<to_latex.patch>_______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards
Done ! http://code.whytheluckystiff.net/redcloth/ticket/35 (I added the code to fix the html entities escaping problem). 2008/2/27, Jason Garber <jg at jasongarber.com>:> Could you post this as a ticket on http://code.whytheluckystiff.net/ > redcloth/newticket? You must create a RubyForge account and give > yourself access at http://code.whytheluckystiff.net/access/ > > I''d like to have different formatters for XHTML and HTML, too, so > yeah, SRC should be as formatter-agnostic as possible. > > > On Feb 27, 2008, at 1:38 AM, Gaspard Bucher wrote: > > > Hi there ! > > > > I needed a ''to_latex'' implementation to generate PDF in zena (a CMS > > http://zenadmin.org) through LaTeX. > > > > Here is a first draft for a ''to_latex'' implementation. > > > > There are some issues with tables, footnotes but the biggest issue is > > character escaped to their html entities (’). I have just > > started writing the tests. More to come soon. > > > > I will try to find a way to fix this without modifying too much of > > SuperRedCloth. > > > > (the patch applies on SR rev 245). > > > > > Gaspard<to_latex.patch>_______________________________________________ > > Redcloth-upwards mailing list > > Redcloth-upwards at rubyforge.org > > http://rubyforge.org/mailman/listinfo/redcloth-upwards > > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards >