kramdown-rfc icon indicating copy to clipboard operation
kramdown-rfc copied to clipboard

support for ``` for artwork elements

Open rohanmahy opened this issue 1 year ago • 1 comments

I seem to remember that both triple backtick and triple tilde were allowed to delimit an block in the vague indeterminate past. in kramdown-rfc 1.7.17 only triple tilde is supported.

Is this a change?

In any case, it would be nice to support both.

rohanmahy avatar Jul 07 '24 14:07 rohanmahy

``` is a code span delimiter in markdown. The codeblock delimiter (fenced codeblocks) is ~~~. (Please see the source of this comment to see why ``` is a code span delimiter.)

Upstream kramdown implements that; I'm not aware of having implemented anything beyond that. So no, I don't think kramdown-rfc lost some functionality.

Obviously,

```
foo
```

is a paragraph with a code span inside, which can almost act like a codeblock in certain cases.

The problem with turning ``` into another codeblock fence is that this can change the meaning of existing documents. The footprint of such a change is probably small, so it can be argued whether that is worse or the confusion with people who learned markdown from GFM is worse. So I'll leave this issue open, in search for a good argument to add the alternate GFM fenced codeblock syntax to kramdown-rfc, or even possibly a better solution.

cabo avatar Jul 07 '24 15:07 cabo