intcreator / markdown-element

A lit-html element that renders Markdown using Commonmark.js
BSD 3-Clause "New" or "Revised" License
12 stars 2 forks source link

Automatically update rendered markdown when <script> tag is changed #3

Open intcreator opened 6 years ago

intcreator commented 6 years ago

Right now updating markdown works for the markdown and src attributes—when these are updated, the markdown will change to reflect that. However, if the <script> tag is changed, nothing happens. Ideally it would be possible to update the markdown that way too.

An alternate solution is getting rid of the script tag and instead just grabbing everything inside <markdown-element> and treating it as markdown.