Project

General

Profile

Actions

Defect #19880

closed

Incorrect syntax for links in Markdown

Added by Anonymous over 9 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

Description

As per the standard Markdown syntax:

To create an inline link, use a set of regular parentheses immediately after the link text’s closing square bracket.

The alternative link syntax style allows two sets of square brackets to be used, the first as the link text and the second as a reference to a link stored elsewhere in the document. In this case only:

You can optionally use a space to separate the sets of brackets.

It's important to note that this "optional space" behaviour does not apply to the []() syntax.

This was discovered with a long series of links in bullet format, where I had a link pointing to wiki pages as "[target-page#target-anchor|Cool Text]", with a note in brackets after it that turned my entire wiki page link string into a label and broke the link.

Note: I have not tested this in the latest 2.x or 3.x versions, but I also couldn't find any existing issue reports that cover this problem.


Files

common_mark.png (44.6 KB) common_mark.png Marius BĂLTEANU, 2021-08-12 22:57

Related issues

Related to Redmine - Feature #32424: CommonMark Markdown Text FormattingClosedMarius BĂLTEANU

Actions
Actions

Also available in: Atom PDF