Inline styles should not be applied in the middle of the word
andrewfan opened this issue · 1 comments
andrewfan commented
Those https://github.com/withspectrum/draft-js-markdown-plugin/blob/master/src/constants.js#L5 regexp should take into account word delimiter to avoid applying styles in the middle of the word.
E.g.
this_is_the_file_name should not be converted in this[italic start]is[italic end]the[italic start]file[italic end]name
mxstbr commented
Yeah I tried figuring this out for a bit but couldn't—would love a PR improving this!