markdown2pdf icon indicating copy to clipboard operation
markdown2pdf copied to clipboard

Convert error in some case

Open gitkidding opened this issue 7 years ago • 2 comments

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?

gitkidding avatar Oct 12 '18 01:10 gitkidding

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.

kxxoling avatar Oct 12 '18 06:10 kxxoling

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?

gitkidding avatar Oct 12 '18 07:10 gitkidding