Skip to content

Fix list indentation in TOC (index.md) #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2017

Conversation

teohhanhui
Copy link
Contributor

@teohhanhui teohhanhui commented Apr 12, 2017

List items may consist of multiple paragraphs. Each subsequent paragraph in a list item must be indented by either 4 spaces or one tab

http://daringfireball.net/projects/markdown/syntax#list

Also see Python-Markdown/markdown#3 (comment)

@teohhanhui teohhanhui requested a review from dunglas April 12, 2017 10:04
Copy link
Member

@soyuka soyuka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will always amaze me with your RFC knowledge \o/

@teohhanhui
Copy link
Contributor Author

Not an RFC, but oh well... Motivation: I was trying to view the docs on GitHub but noticed that it's one long, flat list. 😅

I also sneaked in another neat trick: Indenting the body of the list item. It looks super neat but renders the same. Especially useful when the body spans multiple paragraphs.

@dunglas dunglas merged commit 234f981 into api-platform:2.0 Apr 12, 2017
@dunglas
Copy link
Member

dunglas commented Apr 12, 2017

Good to know! Thanks.

@teohhanhui teohhanhui deleted the hotfix/list-indent branch March 7, 2018 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants