kxxoling / markdown2pdf

[Deprecated] A command line tool to convert markdown file to pdf.
https://pypi.python.org/pypi/Markdown2PDF
63 stars 23 forks source link

Convert error in some case #13

Open gitkidding opened 6 years ago

gitkidding commented 6 years ago

Work on ubuntu16.04.python2.7, markdown2pdf install pip install markdown2pdf. Covert markdown script md2pdf test.md

## title1

### title2
test statement.
* first point
  + aaaaaaaaaaaaaaaaaaaaaaaaa
  + bbbbbbbbbbbbbbbbbbbbbbbbb
* second point
  + ccccccccccccccccccccccccc
  + ddddddddddddddddddddddddd
  + fffffffffffffffffffffffff

and get aa Then remove test statement. from the script,conversion is correct. Is there something wrong?

kxxoling commented 6 years ago

Just change your + to * should work. Markdown has no universal standard, * is the most accepted list mark, while - and + are only supported in particular services and apps, eg github.

If you want to support more markdown documents you should overwrite the parser yourself. mistune is a good example of this. Convert markdown -> html -> pdf should still work.

gitkidding commented 6 years ago

Just change your + to * should work. Markdown has no universal standard, * is the most accepted list mark, while - and + are only supported in particular services and apps, eg github.

If you want to support more markdown documents you should overwrite the parser yourself. mistune is a good example of this. Convert markdown -> html -> pdf should still work.

Thanks for reply and kindness. I think markdown2pdf supports - and +. Remove test statement. from the script above and get: bb So,maybe this is a BUG?