[wp-meta] [Making WordPress.org] #2931: Plugin Directory: Incorrect parsing of code blocks
Making WordPress.org
noreply at wordpress.org
Mon Jun 11 03:00:12 UTC 2018
#2931: Plugin Directory: Incorrect parsing of code blocks
------------------------------+-----------------------
Reporter: SergeyBiryukov | Owner: dd32
Type: defect | Status: accepted
Priority: normal | Milestone:
Component: Plugin Directory | Resolution:
Keywords: needs-patch |
------------------------------+-----------------------
Comment (by dd32):
[attachment:2931.diff] is where I got up to a few days back, uploading
here as a WIP patch for backup purposes..
- Not splitting content into headers when within code blocks (Not
entirely sure if this is still working correctly, as it hasn't been fully
tested after the following changes)
- Upgrading the Markdown parser from v 1.6 to 1.8
- Converting {{{```....```}}} code blocks to
{{{<pre><code>...</pre></code>}}} instead of indented blocks to workaround
the previously mentioned markdown parser bug mentioned in [comment:5
Comment #5]
These changes can be seen on https://wordpress.org/plugins/test-plugin-3/
which has FAQ entries which were previously parsing improperly and the
code block from the original report.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2931#comment:6>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list