Titus

Results 1021 comments of Titus

Thanks for the investigation and your kind words! `resolveAllLineSuffixes` exists because trailing spaces on a line are not “emitted”/“rendered” `a ` -> `a`. This seems like a bug there as...

I’m not 100% this is a bug. Given `a ` -> `a`, `# b ` -> `b`, `# c # ` -> `c`. Why would this here be different? Why...

Links and emphasis are the same. ```markdown *b c* [b c](#) ``` https://spec.commonmark.org/dingus/?text=%20*b%20%0Ac*%20%0A%0A%20%5Bb%20%0Ac%5D(%23)%20%0A The thing with them though, is that they are parsed as separate things: `*`, `*`, `[`, `]()`....

> lineSuffix Without a final end-of-file end-of-line, it’s still the end of the line (`a ` vs `a \n`). As this whole thing is parsed separately, it’s the start of...

Have you considered how this affects different directives? Texts? Containers? Are there other markdown things that work like this? Have you found this feature in the [proposal](https://talk.commonmark.org/t/generic-directives-plugins-syntax/444) or in other...

HTML is a mostly whitespace-insensitive language. Markdown is a whitespace-sensitive language. Markdown blocks are parsed per line: either a line is something, or it isn’t. It doesn’t backtrack past lines....

Importantly, “whitespace” is generally `[\r\n\t ]+`, and maybe a couple more characters. But in your case you are talking about `(\r?\n|\r)`, which is a line ending. Some characters and a...

Markdown doesn't have errors, just like html or css, unlike javascript, it never crashes. I don't think crashing for directives is a good idea. They're supposed to be like markdown....

This (backtracking across lines) is something that markdown doesn’t currently do. It’s dangerous (it can be a source of “DDoSing”). I understand that you want to do what you propose....

I like this because JSX/XML/HTML also support a “namespace” (`:svg:rect`). I dislike this because it is close to conflicting with gemoji shortcodes ([see also this related fix](https://github.com/micromark/micromark-extension-directive/commit/e0fe913a9240921223f1ea0d7edc1eca59f42b41)) in the text...