Skip to content

Line break in link references inside lists #742

Closed
@vincentbernat

Description

@vincentbernat

Hey!

Consider the following code:

Two things:

 - I would like to tell you about the [code of
   conduct][] we are using in this project.
 - Only one in fact.

[code of conduct]: https://github.com/Python-Markdown/markdown/blob/master/CODE_OF_CONDUCT.md

CommonMark is rendering the link correctly. GitHub as well (see below). PHP Markdown does render correctly too. However, Python-Markdown doesn't because of the space at the beginning of the line. I don't know if space at the beginning of a line should just be ignored inside a link or if only the exact amount of space used for list indent should be ignored.


Two things:

  • I would like to tell you about the code of
    conduct
    we are using in this project.
  • Only one in fact.

Metadata

Metadata

Assignees

Labels

bugBug report.confirmedConfirmed bug report or approved feature request.coreRelated to the core parser code.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions