Home / GitHub Page

HTML To Markdown test fails

Is anyone else seeing this? On running npm run test on current master (commit 7b3651), I get one failed test for HTML to Markdown conversion.
Output:

Testing with sync target: memory
Randomized with seed 71129
Started

Error converting file: joplin_checkboxes_2.html
--------------------------------- Got:
-   Not checked
-   Checked!!
    -   Indented, with **bold**
    -   Indented, not checked
--------------------------------- Raw:
[
  '-   Not checked',
  '-   Checked!!',
  '    -   Indented, with **bold**',
  '    -   Indented, not checked'
]
--------------------------------- Expected:
[
  '- [ ] Not checked',
  '- [x] Checked!!',
  '    - [x] Indented, with **bold**',
  '    - [ ] Indented, not checked'
]
--------------------------------------------

F

Failures:
1) HtmlToMd should convert from Html to Markdown
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at <Jasmine>
        at /home/anirudh/Projects/forks/joplin/CliClient/tests-build/HtmlToMd.js:82:19
        at async UserContext.<anonymous> (/home/anirudh/Projects/forks/joplin/CliClient/tests-build/test-utils.js:375:4)

Ran 1 of 269 specs
1 spec, 1 failure
Finished in 4.479 seconds
Randomized with seed 71129 (jasmine --random=true --seed=71129)

Trying the case manually, you can see there is some unexpected behavior

I see that the joplin-turndown repo was updated 4 days ago to handle this, but it doesn’t seem to fix the issue. Is there some other rendering plugin which could be conflicting with it?