nathonius / obsidian-highlight-extended

MIT License
5 stars 1 forks source link

Figure out a less hacky way to highlight in preview mode #9

Open nathonius opened 3 years ago

nathonius commented 3 years ago

Using innerHTML isn't going to make it past review. Which is fair, this is an injection vector in this case.

Options:

  1. Find all mark elements in the DOM, check their parent & sibling elements for marks
  2. Figure out how to register a new markdown type? Maybe I can have the style part appear differently as a specific html element/class
  3. ??? if i knew i'd have done it already