This document is also available in these non-normative formats: XML and HTML with automatic change markup courtesy of DeltaXignia.
Copyright © 2018–2025 the Contributors to the XProc 3.1: text steps specification, published by the XProc Next Community Group under the W3C Community Contributor License Agreement (CLA). A human-readable summary is available.
This specification describes the optional text related steps for XProc 3.1: An XML Pipeline Language.
This document is an editor's draft that has no official standing.
This specification was published by the XProc Next Community Group. It is not a W3C Standard nor is it on the W3C Standards Track. Please note that under the W3C Community Contributor License Agreement (CLA) there is a limited opt-out and other conditions apply. Learn more about W3C Community and Business Groups.
If you wish to make comments regarding this document, please send them to xproc-dev@w3.org. (subscribe, archives).
This draft is the “editor’s working draft” and may continue to evolve.
This specification describes the optional text related XProc steps. A machine-readable description of these steps may be found in steps.xpl.
Familarity with the general nature of XProc 3.1 steps is assumed.
The p:markdown-to-html step converts a text document in Markdown to XHTML.
Summary
| Input port | Primary | Sequence | Content types |
|---|---|---|---|
| source | ✔ | text |
| Output port | Primary | Sequence | Content types |
|---|---|---|---|
| result | ✔ | html |
| Option name | Type | Default value |
|---|---|---|
| parameters | map(xs:QName, item()*)? | () |
| Implementation | Description |
|---|---|
| Defined | The flavor(s) of Markdown supported and the parameters allowed are implementation-defined. |
<p:declare-steptype="p:markdown-to-html">
<p:inputport="source"primary="true"content-types="text"/>
<p:outputport="result"primary="true"content-types="html"/>
<p:optionname="parameters"as="map(xs:QName, item()*)?"/> </p:declare-step>
The p:markdown-to-html step transforms a text document containing Markdown, for example CommonMark, into HTML. The flavor(s) of Markdown supported and the parameters allowed are implementation-defined.
No document properties are preserved.
Conformant processors must implement all of the features described in this specification except those that are explicitly identified as optional.
Some aspects of processor behavior are not completely specified; those features are either implementation-dependent or implementation-defined.
An implementation-dependent feature is one where the implementation has discretion in how it is performed. Implementations are not required to document or explain how implementation-dependent features are performed.
An implementation-defined feature is one where the implementation has discretion in how it is performed. Conformant implementations must document how implementation-defined features are performed.
The following features are implementation-defined:
[CommonMark] CommonMark Spec. John MacFarlane. 6 April 2019.
[XProc 3.1] XProc 3.1: An XML Pipeline Language. Norman Walsh, Achim Berndzen, Gerrit Imsieke and Erik Siegel, editors.
An implementation-defined feature is one where the implementation has discretion in how it is performed. Conformant implementations must document how implementation-defined features are performed.
An implementation-dependent feature is one where the implementation has discretion in how it is performed. Implementations are not required to document or explain how implementation-dependent features are performed.
This specification includes by reference a number of ancillary files.
An XProc step library for the declared steps.