Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert error in some case #13

Open
gitkidding opened this issue Oct 12, 2018 · 2 comments
Open

Convert error in some case #13

gitkidding opened this issue Oct 12, 2018 · 2 comments

Comments

@gitkidding
Copy link

gitkidding commented Oct 12, 2018

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
Copy link
Owner

kxxoling commented Oct 12, 2018

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants