leodr / html-to-jsx-transform

A library for converting an HTML string into a JSX string using ASTs.
MIT License
18 stars 2 forks source link

JSON content inside of <pre> tags not correctly translated #9

Open bdunavant opened 1 month ago

bdunavant commented 1 month ago
<pre>[{"foo":"bar"}]</pre>

gets translated as a variable into

<pre>[{ /*$merge: {"foo":"bar"}*/ }]</pre>

expected:

<pre>
  [{"{"}"foo":"bar"{"}"}]
</pre>
leodr commented 1 month ago

This is definitely an issue but I don’t have time to fix it right now.