[wp-meta] [Making WordPress.org] #5875: Allow XML configuration examples in WP core handbook
Making WordPress.org
noreply at wordpress.org
Wed Aug 25 05:55:29 UTC 2021
#5875: Allow XML configuration examples in WP core handbook
--------------------------------------+---------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: Make (Get Involved) / P2 | Resolution:
Keywords: |
--------------------------------------+---------------------
Comment (by dd32):
The problems with this page doesn't appear to be a KSES thing, or a meta
thing, it's mostly a combination of Gutenberg parsing, the
syntaxhighlighter block having issues, and improper nesting of blocks in
the page.
Editing the page visually causes several issues:
- Lists are broken blocks, as they're Ordered lists but lack the ordered
attribute in the block meta
- Syntax highlighter bash blocks are removed, for some reason
- The problematic example in question, is a block, contained within a
block, that doesn't allow nesting.
On that last one, here's a simplified view of the problem code, used in a
few places on that page: (Note: nested, and missing list block meta to
specify ordered)
{{{
<!-- wp:list -->
<ol>
<li>List content</li>
<li>List Contents
<!-- wp:syntaxhighlighter/code {"language":"bash"} -->
<pre class="wp-block-syntaxhighlighter-code">
npm install broken-things
</pre>
<!-- /wp:syntaxhighlighter/code -->
</li>
</ol>
<!-- /wp:list -->
}}}
I've attempted to edit this page several times now to fix those items, but
every time i fixed one thing I broke another thing, causing me to revert
back and start again.
I think this page might need to be rebuilt, or at least copied out of
Gutenberg corrected and imported back.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5875#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list