crosstype / node-html-markdown

Fast HTML to markdown converter for NodeJS or the browser
163 stars 28 forks source link

Inserting unexpected escape characters. #65

Open boog opened 3 months ago

boog commented 3 months ago

Converting a number followed by a period (.) followed by a space inserts an escaped backslash before the period unexpectedly.

ie input: 9. output: 9\\.

Not clear to me why it's inserting an escaped \ character, probably has something to do with floating point numbers or something like this. Is there a way to disable or work-around this issue?

boog commented 3 months ago

Example code:

      const output = NodeHtmlMarkdown.translate(
        /* html */ "9. ", 
      );