cakebake / markdown-themeable-pdf

ARCHIVED. NOT MAINTAINED. Themeable Markdown Converter (Print to PDF, HTML, JPEG or PNG)
https://atom.io/packages/markdown-themeable-pdf
133 stars 37 forks source link

html tags disables markdown formatting #47

Closed IreneCrisologo closed 8 years ago

IreneCrisologo commented 8 years ago

Hi!

When I try to convert a markdown that uses html tags to format some lines (centering them for example) it ignores the markdown formatting and just considers everything inside as regular text. Kindly see below some code example and the output.

Code: image

PDF: image

I've tried searching for other ways to center lines but using html tags is what everyone recommends. Can this be integrated in the package? :)

Cheers, irene

cakebake commented 8 years ago

Sorry, but inside html you must work with pure html only :( This is because of limitation by markdown-it module.

cakebake commented 8 years ago

@irenemeanspeace coul this help you out? maybe I could implement it, if it make sense.

https://www.npmjs.com/package/markdown-it-container