From 876a6a393125efc9d771cebdae1c02fec37c8ef7 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Sun, 18 Jan 2026 23:09:34 +0000 Subject: [PATCH] cmark: fix XML by converting para to simpara tags via script (#5153) --- reference/cmark/book.xml | 24 +++++++-------- reference/cmark/commonmark.cql.xml | 18 +++++------ .../commonmark.interfaces.ivisitable.xml | 12 ++++---- .../cmark/commonmark.interfaces.ivisitor.xml | 10 +++---- reference/cmark/commonmark.node.xml | 12 ++++---- reference/cmark/commonmark.parser.xml | 14 ++++----- reference/cmark/commonmark/cql/construct.xml | 14 ++++----- reference/cmark/commonmark/cql/invoke.xml | 10 +++---- .../interfaces/ivisitable/accept.xml | 12 ++++---- .../commonmark/interfaces/ivisitor/enter.xml | 30 +++++++++---------- .../commonmark/interfaces/ivisitor/leave.xml | 30 +++++++++---------- reference/cmark/commonmark/node/accept.xml | 12 ++++---- .../cmark/commonmark/node/appendchild.xml | 20 ++++++------- .../commonmark/node/bulletlist/construct.xml | 12 ++++---- .../commonmark/node/codeblock/construct.xml | 22 +++++++------- .../commonmark/node/heading/construct.xml | 12 ++++---- .../cmark/commonmark/node/image/construct.xml | 24 +++++++-------- .../cmark/commonmark/node/insertafter.xml | 20 ++++++------- .../cmark/commonmark/node/insertbefore.xml | 20 ++++++------- .../cmark/commonmark/node/link/construct.xml | 24 +++++++-------- .../commonmark/node/orderedlist/construct.xml | 30 +++++++++---------- .../cmark/commonmark/node/prependchild.xml | 20 ++++++------- reference/cmark/commonmark/node/replace.xml | 20 ++++++------- .../cmark/commonmark/node/text/construct.xml | 18 +++++------ reference/cmark/commonmark/node/unlink.xml | 16 +++++----- .../cmark/commonmark/parser/construct.xml | 12 ++++---- reference/cmark/commonmark/parser/finish.xml | 16 +++++----- reference/cmark/commonmark/parser/parse.xml | 20 ++++++------- reference/cmark/configure.xml | 13 ++++---- .../cmark/functions/commonmark.parse.xml | 20 ++++++------- .../functions/commonmark.render.html.xml | 24 +++++++-------- .../functions/commonmark.render.latex.xml | 30 +++++++++---------- .../cmark/functions/commonmark.render.man.xml | 30 +++++++++---------- .../cmark/functions/commonmark.render.xml | 30 +++++++++---------- .../cmark/functions/commonmark.render.xml.xml | 24 +++++++-------- reference/cmark/setup.xml | 22 +++++++------- 36 files changed, 312 insertions(+), 385 deletions(-) diff --git a/reference/cmark/book.xml b/reference/cmark/book.xml index b79457ca4e..2b81863aea 100644 --- a/reference/cmark/book.xml +++ b/reference/cmark/book.xml @@ -1,46 +1,45 @@ - - + CommonMark CommonMark &reftitle.intro; - + This extension provides access to the reference implementation of CommonMark, a rationalized version of Markdown syntax with a specification. - + Parsing: The CommonMark extension provides a simple parsing API: - + Rendering: The CommonMark extension provides simple rendering API that supports multiple formats: - - - - - + + + + + AST: The CommonMark extension implements visitation for CommonMark\Node objects: - + CQL: The CommonMark extension provides an interface to CQL, CommonMark Query Language: - + @@ -76,7 +75,6 @@ &reference.cmark.reference; - - - + The CommonMark\CQL class CommonMark\CQL @@ -11,9 +10,9 @@
&reftitle.intro; - + CommonMark Query Language is a DSL for describing how to travel through a CommonMark Node tree implemented as a parser and compiler for a small set of instructions, and a virtual machine for executing those instructions. - + Paths: @@ -38,7 +37,7 @@ Subqueries CQL can be instructed how to travel by using a subquery like [/firstChild]. For example, /firstChild/children[/firstChild] will travel to the first child node of all the children of the first child node. - + Loop Constraints @@ -78,7 +77,7 @@ Implementation Notes While CQL has been implemented as part of the PHP CommonMark extension, it stands separately from PHP and does not use PHP's virtual machine or internal representation of values. - +
@@ -99,10 +98,10 @@ &Constructor; - - + + &Methods; - + @@ -114,7 +113,6 @@ &reference.cmark.commonmark.cql.invoke;
- - - + The CommonMark\Interfaces\IVisitable interface CommonMark\Interfaces\IVisitable @@ -11,9 +10,9 @@
&reftitle.intro; - + - +
@@ -32,8 +31,8 @@ - - + + @@ -44,7 +43,6 @@ &reference.cmark.commonmark.interfaces.ivisitable.accept;
- - - + The CommonMark\Interfaces\IVisitor interface CommonMark\Interfaces\IVisitor @@ -11,9 +10,9 @@
&reftitle.intro; - + - +
@@ -50,7 +49,7 @@ &Methods; - + @@ -62,7 +61,6 @@ &reference.cmark.commonmark.interfaces.ivisitor.leave;
- - - + Abstract CommonMark\Node CommonMark\Node @@ -11,9 +10,9 @@
&reftitle.intro; - + Represents an Abstract Node, this final abstract is not for direct use by the programmer. - +
@@ -35,7 +34,7 @@ CommonMark\Interfaces\IVisitable - + Traversable @@ -99,7 +98,7 @@ &Methods; - + @@ -117,7 +116,6 @@ &reference.cmark.commonmark.node.accept;
- - - + The CommonMark\Parser class CommonMark\Parser @@ -11,9 +10,9 @@
&reftitle.intro; - + Provides an incremental parser as an alternative to the simple Parsing API function - +
@@ -34,10 +33,10 @@ &Constructor; - - + + &Methods; - + @@ -50,7 +49,6 @@ &reference.cmark.commonmark.parser.finish;
- - - + CommonMark\CQL::__construct CQL Construction @@ -13,9 +12,9 @@ public CommonMark\CQL::__construct stringquery - - - + + + @@ -25,16 +24,15 @@ query - + a CQL string - + - - - + CommonMark\CQL::__invoke CQL Execution @@ -14,10 +13,10 @@ CommonMark\Noderoot callablehandler - + Shall invoke the current CQL function on the given root, executing the given handler on entry to a CommonMark\Node - + @@ -27,7 +26,7 @@ root - the root node of a tree + the root node of a tree @@ -52,7 +51,6 @@ - - - + CommonMark\Interfaces\IVisitable::accept Visitation @@ -22,9 +21,9 @@ visitor - + An object implementing CommonMark\Interfaces\IVisitor - + @@ -33,13 +32,12 @@ &reftitle.seealso; - - + + - - - + CommonMark\Interfaces\IVisitor::enter Visitation @@ -22,9 +21,9 @@ visitable - + The current CommonMark\Interfaces\IVisitable being entered - + @@ -32,33 +31,32 @@ &reftitle.returnvalues; - + Returning CommonMark\Interfaces\IVisitor::Done will cause the backing iterator to exit. - - + + Returning CommonMark\Interfaces\IVisitor::Enter will reset the backing iterator at entering the current IVisitable - - + + Returning CommonMark\Interfaces\IVisitor::Leave will reset the backing iterator at exiting the current IVisitable - - + + Returning an IVisitable will reset the backing iterator at entering the given IVisitable - - + + Returning nothing will allow the backing iterator to continue - + &reftitle.seealso; - + - - - + CommonMark\Interfaces\IVisitor::leave Visitation @@ -22,9 +21,9 @@ visitable - + The current CommonMark\Interfaces\IVisitable being exited - + @@ -32,33 +31,32 @@ &reftitle.returnvalues; - + Returning CommonMark\Interfaces\IVisitor::Done will cause the backing iterator to exit. - - + + Returning CommonMark\Interfaces\IVisitor::Enter will reset the backing iterator at entering the current IVisitable - - + + Returning CommonMark\Interfaces\IVisitor::Leave will reset the backing iterator at exiting the current IVisitable - - + + Returning an IVisitable will reset the backing iterator at exiting the given IVisitable - - + + Returning nothing will allow the backing iterator to continue - + &reftitle.seealso; - + - - - + CommonMark\Node::accept Visitation @@ -22,9 +21,9 @@ visitor - + An object implementing CommonMark\Interfaces\IVisitor - + @@ -33,14 +32,13 @@ &reftitle.seealso; - - + + - - - + CommonMark\Node::appendChild AST Manipulation @@ -13,9 +12,9 @@ public CommonMark\NodeCommonMark\Node::appendChild CommonMark\Nodechild - + - + &warn.undocumented.func; @@ -27,9 +26,9 @@ child - - - + + + @@ -37,14 +36,13 @@ &reftitle.returnvalues; - - - + + + - - - + CommonMark\Node\BulletList::__construct BulletList Construction @@ -11,7 +10,7 @@ &reftitle.description; public CommonMark\Node\BulletList::__construct - + public CommonMark\Node\BulletList::__construct @@ -22,9 +21,9 @@ inttight intdelimiter - + - + &warn.undocumented.func; @@ -41,7 +40,7 @@ &reftitle.returnvalues; - + --> @@ -49,7 +48,6 @@ - - - + CommonMark\Node\CodeBlock::__construct CodeBlock Construction @@ -14,9 +13,9 @@ stringfence stringliteral - + - + &warn.undocumented.func; @@ -28,17 +27,17 @@ fence - - - + + + literal - - - + + + @@ -50,7 +49,7 @@ &reftitle.returnvalues; - + --> @@ -58,7 +57,6 @@ - - - + CommonMark\Node\Heading::__construct Heading Construction @@ -11,15 +10,15 @@ &reftitle.description; public CommonMark\Node\Heading::__construct - + public CommonMark\Node\Heading::__construct intlevel - + - + &warn.undocumented.func; @@ -36,7 +35,7 @@ &reftitle.returnvalues; - + --> @@ -44,7 +43,6 @@ - - - + CommonMark\Node\Image::__construct Image Construction @@ -11,7 +10,7 @@ &reftitle.description; public CommonMark\Node\Image::__construct - + public CommonMark\Node\Image::__construct @@ -22,9 +21,9 @@ stringurl stringtitle - + - + &warn.undocumented.func; @@ -36,17 +35,17 @@ url - - - + + + title - - - + + + @@ -58,7 +57,7 @@ &reftitle.returnvalues; - + --> @@ -66,7 +65,6 @@ - - - + CommonMark\Node::insertAfter AST Manipulation @@ -13,9 +12,9 @@ public CommonMark\NodeCommonMark\Node::insertAfter CommonMark\Nodesibling - + - + &warn.undocumented.func; @@ -27,9 +26,9 @@ sibling - - - + + + @@ -37,14 +36,13 @@ &reftitle.returnvalues; - - - + + + - - - + CommonMark\Node::insertBefore AST Manipulation @@ -13,9 +12,9 @@ public CommonMark\NodeCommonMark\Node::insertBefore CommonMark\Nodesibling - + - + &warn.undocumented.func; @@ -27,9 +26,9 @@ sibling - - - + + + @@ -37,14 +36,13 @@ &reftitle.returnvalues; - - - + + + - - - + CommonMark\Node\Link::__construct Link Construction @@ -11,7 +10,7 @@ &reftitle.description; public CommonMark\Node\Link::__construct - + public CommonMark\Node\Link::__construct @@ -22,9 +21,9 @@ stringurl stringtitle - + - + &warn.undocumented.func; @@ -36,17 +35,17 @@ url - - - + + + title - - - + + + @@ -58,7 +57,7 @@ &reftitle.returnvalues; - + --> @@ -66,7 +65,6 @@ - - - + CommonMark\Node\OrderedList::__construct OrderedList Construction @@ -11,7 +10,7 @@ &reftitle.description; public CommonMark\Node\OrderedList::__construct - + public CommonMark\Node\OrderedList::__construct @@ -28,9 +27,9 @@ intdelimiter intstart - + - + &warn.undocumented.func; @@ -42,25 +41,25 @@ tight - - - + + + delimiter - - - + + + start - - - + + + @@ -72,7 +71,7 @@ &reftitle.returnvalues; - + --> @@ -80,7 +79,6 @@ - - - + CommonMark\Node::prependChild AST Manipulation @@ -13,9 +12,9 @@ public CommonMark\NodeCommonMark\Node::prependChild CommonMark\Nodechild - + - + &warn.undocumented.func; @@ -27,9 +26,9 @@ child - - - + + + @@ -37,14 +36,13 @@ &reftitle.returnvalues; - - - + + + - - - + CommonMark\Node::replace AST Manipulation @@ -13,9 +12,9 @@ public CommonMark\NodeCommonMark\Node::replace CommonMark\Nodetarget - + - + &warn.undocumented.func; @@ -27,9 +26,9 @@ target - - - + + + @@ -37,14 +36,13 @@ &reftitle.returnvalues; - - - + + + - - - + CommonMark\Node\Text::__construct Text Construction @@ -11,15 +10,15 @@ &reftitle.description; public CommonMark\Node\Text::__construct - + public CommonMark\Node\Text::__construct stringliteral - + - + &warn.undocumented.func; @@ -31,9 +30,9 @@ literal - - - + + + @@ -45,7 +44,7 @@ &reftitle.returnvalues; - + --> @@ -53,7 +52,6 @@ - - - + CommonMark\Node::unlink AST Manipulation @@ -11,11 +10,11 @@ &reftitle.description; public voidCommonMark\Node::unlink - + - + - + &warn.undocumented.func; @@ -28,14 +27,13 @@ &reftitle.returnvalues; - - - + + + - - - + CommonMark\Parser::__construct Parsing @@ -13,9 +12,9 @@ public CommonMark\Parser::__construct intoptions - + - + &warn.undocumented.func; @@ -27,9 +26,9 @@ options - + A mask of: - + @@ -78,7 +77,6 @@ - - - + CommonMark\Parser::finish Parsing @@ -11,11 +10,11 @@ &reftitle.description; public CommonMark\NodeCommonMark\Parser::finish - + - + - + &warn.undocumented.func; @@ -28,14 +27,13 @@ &reftitle.returnvalues; - - - + + + - - - + CommonMark\Parser::parse Parsing @@ -13,9 +12,9 @@ public voidCommonMark\Parser::parse stringbuffer - + - + &warn.undocumented.func; @@ -27,9 +26,9 @@ buffer - - - + + + @@ -37,14 +36,13 @@ &reftitle.returnvalues; - - - + + + - - -
+
&reftitle.install; - + Use when compiling PHP. - + - + Windows users should include php_cmark.dll into &php.ini; - +
- - - - + CommonMark\Parse Parsing @@ -14,9 +13,9 @@ stringcontent intoptions - + Shall parse content - + @@ -26,17 +25,17 @@ content - + markdown string - + options - + A mask of: - + @@ -86,14 +85,13 @@ &reftitle.returnvalues; - + Shall return root CommonMark\Node - + - - - + CommonMark\Render\HTML Rendering @@ -14,9 +13,9 @@ CommonMark\Nodenode intoptions - + - + &warn.undocumented.func; @@ -28,17 +27,17 @@ node - - - + + + options - + A mask of: - + @@ -98,14 +97,13 @@ &reftitle.returnvalues; - - - + + + - - - + CommonMark\Render\Latex Rendering @@ -15,9 +14,9 @@ intoptions intwidth - + - + &warn.undocumented.func; @@ -29,17 +28,17 @@ node - - - + + + options - + A mask of: - + @@ -97,9 +96,9 @@ width - - - + + + @@ -107,14 +106,13 @@ &reftitle.returnvalues; - - - + + + - - - + CommonMark\Render\Man Rendering @@ -15,9 +14,9 @@ intoptions intwidth - + - + &warn.undocumented.func; @@ -29,17 +28,17 @@ node - - - + + + options - + A mask of: - + @@ -97,9 +96,9 @@ width - - - + + + @@ -107,14 +106,13 @@ &reftitle.returnvalues; - - - + + + - - - + CommonMark\Render Rendering @@ -15,9 +14,9 @@ intoptions intwidth - + - + &warn.undocumented.func; @@ -29,17 +28,17 @@ node - - - + + + options - + A mask of: - + @@ -97,9 +96,9 @@ width - - - + + + @@ -107,14 +106,13 @@ &reftitle.returnvalues; - - - + + + - - - + CommonMark\Render\XML Rendering @@ -14,9 +13,9 @@ CommonMark\Nodenode intoptions - + - + &warn.undocumented.func; @@ -28,17 +27,17 @@ node - - - + + + options - + A mask of: - + @@ -98,14 +97,13 @@ &reftitle.returnvalues; - - - + + + - - - + &reftitle.setup;
&reftitle.required; - + The CommonMark extension requires the (C) reference implementation of cmark. - +
&reftitle.install; - + The CommonMark extension releases are hosted by PECL and source is hosted on - github, + github, the easiest route to installation is the normal PECL route: &url.pecl.package;cmark. - - + + Windows users can download prebuilt release binaries from the PECL website. - + - + Windows users need to take the additional step of adding cmark.dll (distributed with Windows releases) to their PATH. - +
-