You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@asutton added <cxx-codeblock> to somewhat handle this, but it'll probably break when it's published/flattened because the HTML parser "knows" when it needs to close the <p>. Would it make sense to just omit the <p> entirely, since <cxx-example> defaults to display:block? It looks like @slightlyoff's https://slightlyoff.github.io/ServiceWorker/spec/service_worker/, another spec using a similar system, is just avoiding nesting code samples inside paragraphs.
We've also mentioned defining a <cxx-p> element to use instead of <p> elements so that the HTML parser won't cause so many problems.
I've noticed that placing
<cxx-example>
within a paragraph will cause the example to be closed immediately without surrounding the example text.The following HTML should reproduce the bug. To workaround the issue, I close the
<p>
before using<cxx-example>
, and it produces the output I expect.The text was updated successfully, but these errors were encountered: