phpdoc-parser icon indicating copy to clipboard operation
phpdoc-parser copied to clipboard

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

Open lkwdwrd opened this issue 10 years ago • 3 comments

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 avatar Jan 08 '16 04:01 lkwdwrd

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

lkwdwrd avatar Jan 08 '16 05:01 lkwdwrd

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

DrewAPicture avatar Jan 14 '16 18:01 DrewAPicture

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

lkwdwrd avatar Jan 15 '16 15:01 lkwdwrd