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

Incorrect markdown import -- lists #1680

Open
eagerm opened this issue May 11, 2021 · 1 comment
Open

Incorrect markdown import -- lists #1680

eagerm opened this issue May 11, 2021 · 1 comment

Comments

@eagerm
Copy link

eagerm commented May 11, 2021

CherryTree 0.99.36 -- built from git repo

Import of lists and hyphens in Markdown is incorrect.

To reproduce:
See the attached test1.md file, import into CherryTree as single Markdown file.

Expected formatting is in test1-pandoc.txt (actually HTML) (generated by "pandoc test1.md -o test1-pandoc.html").
Actual (exported) output is test1.txt (actually HTML).

According to Markdown cheatsheet plus sign (+) or asterisk (*) can be used as list marker.

Errors:

  1. Line 3 (text with leading -) ignored
  2. Line 9 (text with trailing -) hyphen lost
  3. Lines 14-15 (nested indent) nesting lost
  4. Line 17 (hyphen embedded in text) remainder of line lost
  5. Line 26 (text surrounded by *) emphasis (italics) lost
  6. (Removed)
  7. Lines 35-36, see 3 above.
  8. (Removed)
  9. Lines 43-59 (use + for lists) plus sign ignored

test1.md
test1-pandoc.txt
test1.txt

@eagerm
Copy link
Author

eagerm commented May 11, 2021

Partial fix for list import issues:

Fix items 1, 2, and 4.
commit-92a4a1f.txt

Will clone and submit a pull request.

eagerm added a commit to eagerm/cherrytree that referenced this issue May 13, 2021
Fix following:
  - text with leading hyphen - line lost
  - hyphen embedded in text - remainder of line lost
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

1 participant