Markdown link not parsed when prepended with `[Text] `

AI-generated summary

The discussion addresses an issue where Markdown links are not parsed when preceded by [Text]. jooize provides an example, and cpradio explains that the behavior works in the CommonMark dingus, suggesting the problem may be resolved when Discourse adopts a more standardized approach. Silvanus asks about migration, and jomaxro clarifies that Discourse will still use Markdown but with a formal specification—CommonMark—due to inconsistencies across implementations. sam confirms the issue appears resolved after a post revision, referencing a related discussion on CommonMark testing.

Example

[Text] Link

Link [Text] Link

2개의 좋아요

This works on

So it will likely get resolved when Discourse moves to it.

4개의 좋아요

Are we migrating from markdown to this new thing, then?

It will still be markdown, just an actual spec.

2개의 좋아요

From the CommonMark website:

##Why is CommonMark needed?
John Gruber’s canonical description of Markdown’s syntax does not specify the syntax unambiguously.

In the absence of a spec, early implementers consulted the original Markdown.pl code to resolve these ambiguities. But Markdown.pl was quite buggy, and gave manifestly bad results in many cases, so it was not a satisfactory replacement for a spec. Markdown.pl was last updated December 17th, 2004.

Because there is no unambiguous spec, implementations have diverged considerably over the last 10 years. As a result, users are often surprised to find that a document that renders one way on one system (say, a GitHub wiki) renders differently on another (say, converting to docbook using Pandoc). To make matters worse, because nothing in Markdown counts as a “syntax error,” the divergence often isn’t discovered right away.

There’s no standard test suite for Markdown; MDTest is the closest thing we have. The only way to resolve Markdown ambiguities and inconsistencies is Babelmark, which compares the output of 20+ implementations of Markdown against each other to see if a consensus emerges.

We propose a standard, unambiguous syntax specification for Markdown, along with a suite of comprehensive tests to validate Markdown implementations against this specification. We believe this is necessary, even essential, for the future of Markdown.

That’s what we call CommonMark.

3개의 좋아요

Rebaked OP and all appears to be working now!

3개의 좋아요