Angle brackets prevent raw HTML - Neuron

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Sridhar Ratnakumar

commonmark (and pandoc too I think) supports raw html tags in your Markdown, huh, TIL. This means we would have to disable them, if neuron is to support <foobar> style links. this wouldn't have been a problem had we chosen an unique syntax, like [[foobar]].

Stefan Matting

In light of this, wouldn't it be more sensible to change the syntax?

felko

I agree, we should be able to use raw HTML, also [[foobar]] is the same syntax as wiki style links which makes sense for a zettelkasten

Sridhar Ratnakumar

I wouldn't personally mind changing the syntax really, but since this would be a breaking change - I wanted to see how others feel about it.

When working on the commonmark parser, I felt that keeping support for legacy links is an unnecessary pain ...

Well if we have migration scripts it is not that big of a deal I guess

Sridhar Ratnakumar

Not gonna bother with this. The raw html parser can be overriden to skip neuron links anywya.

Sridhar Ratnakumar

To be clear: this would be user overridable. As long as whatever link syntax they use gets parsed as a Link node in the pandoc AST.