ruby - Preprocessing markup files in jekyll -


I would like to write a preprocessor before being processed by HTML in HTML before being run on the border of markup languages. Ideally, the user will only create a file called _posts / xxyyzz.md.wmd, and I'll preprose it in xxyyzz.md by giving it a plugin, and after that it will process it in HTML in general.

It seems that the converter structure of Jacobine does not allow it because the output_ext function is only given the last extension "wmd", for ".md.wmd" Prevents ".md" from returning, ".textile.wmd" for ".textile", etc.

Is there a way to implement a series of processing steps in this way?

Edit: Grammar

Maybe you use one of your wmd converter You can try to use:

  "yourWmdConverter" module Jquell Class Convertmood & lt; Jakele :: Generator Def initialization (config) config ['convert_wmd'] || = True end DRAF generated (site) @ site = site site. Post.desk.ch {| Posted in | Convert WMD Post} End Personal Def Convert Wmd (Post) post.content = yourWmdConverter post.content End End  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -