Skip to content
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

Stop stripping new lines and instead make parsed post types post_content private #173

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

lkwdwrd
Copy link
Contributor

@lkwdwrd lkwdwrd commented Jan 8, 2016

This fixes the issue where new lines were being stripped from <pre> blocks.

Stripping new lines was a bandaid fix to begin with, and bled through in <pre> blocks. Rather than putting a bandaid over a bandaid, this changes the approach. At the same time we look to grab additional data from the parsing. Namely the raw summary and the raw docblock itself.

This is a replacement for the work in #165 which was the bandaid/bandaid fix, but the issue has more history.

@lkwdwrd
Copy link
Contributor Author

lkwdwrd commented Jan 8, 2016

Initial pass at a patch for DevHub posted on Meta Trac (https://meta.trac.wordpress.org/ticket/1508)

@DrewAPicture
Copy link
Member

Kind of meta, but the wp_parser_autop_blacklist hook needs a DocBlock ;)

@lkwdwrd
Copy link
Contributor Author

lkwdwrd commented Jan 15, 2016

haha! so very true! I will add one when I find some more time to work on the parser.

coffee2code added a commit that referenced this pull request Oct 4, 2018
This is hacky. It predates a similar approach proposed in #165 and is not the more complete solution proposed in #173, but it'll at least sync the code with that used in production.

Fixes #114, see #165, see #173.
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.

2 participants