cloudhead/toto

dealing with "<div>" in articles

sdesbure opened this issue · 1 comments

Hi,
Currently in Markdown, you cannot use blocks like <div> because the parsing is not done inside.
Today, I want to use div elements for simple localization (one div per language, javascript for hiding / showing the "good" div).
One thing simple should be to rewrite after the markdown translation with a comment
For example <!-- div-start-en --> would be rewritten in <div id='en'> and <!-- div-end-en --> would be rewritten in </div id='en'>.
There's maybe other ways to do that of course but if you think it worth it, I can propose a patch to make that work
regards

Ok I found a way to be able to use <div> blocks.
RDiscount is a strict implementation of Markdown, so I'm using kramdown which allow it.
For more informations, see http://desbureaux.heroku.com/2010/12/28/localization-part-1/

I close this issue and open a new one about using other text parser