ryanpcmcquen / workflowyCodeFormatter

:hourglass_flowing_sand: A simple and lightweight solution to the WorkFlowy code dilemma. | https://addons.mozilla.org/en-US/firefox/addon/workflowy-code-formatter/ | https://chrome.google.com/webstore/detail/workflowy-code-formatter/kglihipcanlbglgikjghocmbbbbkfemn
Mozilla Public License 2.0
39 stars 6 forks source link

Single-backticked code formatting breaks inline links in the same item #21

Open TyMick opened 3 years ago

TyMick commented 3 years ago

Here's what I'm experiencing:

A demonstration of inline links in WorkFlowy breaking whenever single-backticked code is added.


Version numbers, in case it helps:

ryanpcmcquen commented 3 years ago

Ah yes, this is expected but unfortunate behavior. To get this extension into the Chrome and Firefox extension stores, we had to stop modifying the inner HTML (which is a potential security issue), so we have to convert things to plain text. There's probably a way around this that would work, but it's going to be a bit tricky.

ryanpcmcquen commented 3 years ago

This is the snippet to look at: https://github.com/ryanpcmcquen/codeFormatter/blob/080548c0d8ec18f1589caef165f0d1f47d10496c/codeFormatter.js#L266-L279

rubaboo commented 2 years ago

A show-stopper for me, unfortunately. Hope you'll get to it sometime.