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
In our Markdown files, we use colon-delimited prefixes to indicate metadata fields specific to certain content processing subsystems.
If I have a Markdown input file with a YAML metadata block as follows:
---title: My Documentmyapp:status: publishedmyapp:label: abc=123---# My Document
This is a document.
and I publish this to DITA (just to see how the metadata is converted):
dita -i topic.md -f dita
the resulting DITA is as follows:
<topicid="my-document">
<title>My Document</title>
<prolog>
<dataname="myapp"value="label: abc=123"/>
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<dataname="title"value="My Document"/>
</prolog>
<body>
<p>This is a document.</p>
</body>
</topic>
The literal colon (:) characters in the YAML field names are incorrectly interpreted as separators. If this same input file is processed through pandoc:
pandoc -s topic.md -o topic-NEW.md
then the fields are parsed and preserved correctly:
---myapp:label: abc=123myapp:status: publishedtitle: My Document---# My Document
This is a document.
The text was updated successfully, but these errors were encountered:
In our Markdown files, we use colon-delimited prefixes to indicate metadata fields specific to certain content processing subsystems.
If I have a Markdown input file with a YAML metadata block as follows:
and I publish this to DITA (just to see how the metadata is converted):
the resulting DITA is as follows:
The literal colon (
:
) characters in the YAML field names are incorrectly interpreted as separators. If this same input file is processed throughpandoc
:then the fields are parsed and preserved correctly:
The text was updated successfully, but these errors were encountered: