> On Nov 15, 2021, at 14:58, Nicholas Clark <nick@ccl4.org> wrote:
>
> And I guess there's also the elephant in the room - even CommonMark is no
> good as-is, because *all* markdown permits you to inline HTML, which makes
> sense for it. We need to specify "Markdown, but without inline HTML", else
> how do we target perldoc?
Another way to say this is: Markdown *targets* HTML, more or less by design. It doesn’t really intend to render to plain text—at least, a while back when I looked for a Markdown-to-text renderer I came up empty.
A bit earlier in this thread I mentioned reStructuredText. From what I can see, this format is basically “like Markdown but renders to text”. What if Perl went this route instead?
-FG
>
> And I guess there's also the elephant in the room - even CommonMark is no
> good as-is, because *all* markdown permits you to inline HTML, which makes
> sense for it. We need to specify "Markdown, but without inline HTML", else
> how do we target perldoc?
Another way to say this is: Markdown *targets* HTML, more or less by design. It doesn’t really intend to render to plain text—at least, a while back when I looked for a Markdown-to-text renderer I came up empty.
A bit earlier in this thread I mentioned reStructuredText. From what I can see, this format is basically “like Markdown but renders to text”. What if Perl went this route instead?
-FG