inline-markdown-editor icon indicating copy to clipboard operation
inline-markdown-editor copied to clipboard

Fix for complex html parsing

Open jywarren opened this issue 7 years ago • 5 comments

Fixes #51 (when complete!)

jywarren avatar Mar 05 '19 00:03 jywarren

OK, working from this branch to try to do real HTML parsing: https://github.com/tautologistics/node-htmlparser/pull/82

But getting: TypeError: undefined is not a constructor (evaluating 'new htmlparser.DefaultHandler') -- ok - https://github.com/tautologistics/node-htmlparser/issues/57

jywarren avatar Mar 05 '19 18:03 jywarren

OK fixed that but can't figure out how to recover the original HTML before it's parsed. May have to try another lib.

jywarren avatar Mar 05 '19 22:03 jywarren

Switching to https://www.npmjs.com/package/node-html-parser

jywarren avatar Mar 05 '19 22:03 jywarren

Somehow node-html-parser is breaking Jasmine, although it works normally in the browser. Left a note here asking for help! https://github.com/ashi009/node-fast-html-parser/issues/4

jywarren avatar Mar 05 '19 23:03 jywarren

Restarting the build to see if we get a different result... ?

jywarren avatar Aug 21 '19 15:08 jywarren