Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown parser for JINJA templates

This is a MarkDown parser that transforms into html by the use of mjml as a jinja template

How it works

This parser reads comments on Markdown files, and interpret them into parser directives. Then, those directives transform the markdown document structure into a python object.

After, that object is passed into a jinja template as the context variable content.

How to test

In order to execute this program, install the dependencies on requiriments.txt and run the next command:

python md2html.py readme.md test_files/test_03/template.mjml > readme.mjml

Yes. This readme is formatted and can be prettified by this tool ;-)

After that, you will have a fully functional mjml file that can be converted into html.

Go, now, and check this tool

Thanks and credits

This tool was created during the EQUINOX 2019, a hackaton for, and by, Telefonica Digital employees.

About

MarkDown parser that transforms into html by the use of mjml as a jinja template

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages