Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Fix website formatting issue #781

Merged
merged 1 commit into from
Apr 11, 2017
Merged

Fix website formatting issue #781

merged 1 commit into from
Apr 11, 2017

Conversation

HadrienG2
Copy link
Contributor

The Markdown engine used for rendering the rust-lang website does not like headings which are not preceded by a linefeed, i.e. this code...

Something
## A heading

...will be badly rendered as Something ## A heading.

Note that this behaviour violates the CommonMark spec ( http://spec.commonmark.org/0.27/#atx-headings : "ATX headings need not be separated from surrounding content by blank lines, and they can interrupt paragraphs"). So if you know more than me about the rendering engine in use, you might want to ask them to fix their parser.

But since putting blank lines before and after headings makes the markdown coding more consistent/readable anyway, I've went for the alternate option of working around the parser bug and putting line feeds everywhere :)

The Markdown engine used for rendering the rust-lang website does not like headings which are not preceded by a linefeed, i.e. this code...

```
Something
## A heading
```

...will be badly rendered as `Something ## A heading`.

Note that this behaviour violates the CommonMark spec ( http://spec.commonmark.org/0.27/#atx-headings : "ATX headings need not be separated from surrounding content by blank lines, and they can interrupt paragraphs"). So if you know more than me about the rendering engine in use, you can ask them to fix their parser.

But since putting blank lines before and after headings makes the markdown style more consistent/readable anyway, I've went for the alternate option of working around the parser bug :)
@steveklabnik
Copy link
Member

So if you know more than me about the rendering engine in use, you might want to ask them to fix their parser.

It's the default github stuff. kramdown?

But since putting blank lines before and after headings makes the markdown coding more consistent/readable anyway, I've went for the alternate option of working around the parser bug and putting line feeds everywhere :)

agree 100%. Thanks!

@steveklabnik steveklabnik merged commit 93dcc9a into rust-lang:master Apr 11, 2017
@HadrienG2 HadrienG2 deleted the patch-1 branch April 11, 2017 18:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants