Another instance of code blocks re-writing my code: It’s not possible to write `<div>`
(which should display as <div>
). It doesn’t work in a fenced code block either. The <
gets unescaped and changed into <
as it’s typed (and the cursor gets sent back to the beginning of the line). You can only get <div>
. This used to be possible, I still have an item with that in my document. It displays correctly, but if I try to edit it, the text goes where the cursor isn’t. I can’t copy and paste it, and I can’t create a new one.
Edit: I guess it’s part of a more general issue, that HTML codes are translated and saved as literal text while being entered. For example, if you write ©
, it will get turned into a literal copyright character, ©. I think this should happen on display - if you have “show markdown” on, you should still see the underlying ©
- Markdown is supposed to leave that alone, and pass it on to the HTML renderer. When you export as HTML, OPML, or Markdown, you should get ©
in the source, and not ©, as it is now.
Oh, I just realized that angle brackets aren’t escaped - if you type <this>
or 4 < 5
, or <br />
outside of a code block, and export it as HTML, you get unescaped literal brackets, and the browser tries to interpret it as HTML. If Legend doesn’t support inline HTML, it should escape angle brackets on export to HTML and OPML. What to do with Markdown is less clear…