amyreese / markdown-pp

Preprocessor for Markdown files to generate a table of contents and other documentation needs
MIT License
309 stars 68 forks source link

$ not redering #67

Open ajbraus opened 5 years ago

ajbraus commented 5 years ago

Love markdown-pp, but having trouble with the $ character

Electric standing desks range from $200-$2000.

Rendering: 200-2000. A survey found standing desk advocates would be happy with the ... Traceback (most recent call last): File "/usr/local/bin/markdown-pp", line 11, in sys.exit(main()) File "/usr/local/lib/python2.7/site-packages/MarkdownPP/main.py", line 112, in main MarkdownPP.MarkdownPP(input=mdpp, output=md, modules=modules) File "/usr/local/lib/python2.7/site-packages/MarkdownPP/MarkdownPP.py", line 28, in init pp.process() File "/usr/local/lib/python2.7/site-packages/MarkdownPP/Processor.py", line 49, in process transforms = module.transform(self.data) File "/usr/local/lib/python2.7/site-packages/MarkdownPP/Modules/LaTeXRender.py", line 77, in transform self.render(tex) + File "/usr/local/lib/python2.7/site-packages/MarkdownPP/Modules/LaTeXRender.py", line 100, in render formula = formula.replace("$", "") UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 163: ordinal not in range(128)

Tried with \$ and I get the same error

Rendering: 200-\2000. A survey found standing desk advocates would be happy with the ... Traceback (most recent call last):

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 163: ordinal not in range(128)

hayekian commented 4 years ago

THis has been mentioned before.. fixed with:

"append -e latexrender to the command you use to call MarkdownPP." fixed it for me