Bug 154205 - Markdown on webkit.org should follow Markdown line break laws
Summary: Markdown on webkit.org should follow Markdown line break laws
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Website (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jon Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-12 17:18 PST by Jon Davis
Modified: 2017-01-18 23:39 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Davis 2016-02-12 17:18:14 PST
While the Markdown parser on webkit.org will properly handle hard line breaks, the WordPress autop() function interferes with this capability. We need to investigate the effects of disabling wpautop() on other content or decide to dynamically disable it when Markdown is used.
Comment 1 Jon Davis 2016-02-12 17:40:00 PST
My investigation shows that yes, we will be able to remove wpautop and allow the Markdown parser to handle the paragraphs.

wpautop() reformats at runtime when the post is delivered to the client. The Markdown parser runs after saving updates to a post and keeps the generated HTML markup in the database.

Making the change to disable wpautop() and enable paragraphs in the Markdown parser will require reprocessing all of the content in posts and pages through the Markdown parser in the database.