lwdita-input.dita 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <topic id="lwdita-input">
  5. <title>Preview support for Lightweight DITA</title>
  6. <titlealts>
  7. <navtitle>Lightweight DITA</navtitle>
  8. </titlealts>
  9. <shortdesc>DITA-OT provides preview support for the MDITA and HDITA authoring formats proposed for
  10. <xref keyref="lwdita"/>, or “<term>LwDITA</term>”. These proposed formats are alternative representations of DITA
  11. content in Markdown or HTML.</shortdesc>
  12. <body>
  13. <section>
  14. <title>MDITA</title>
  15. <p>MDITA is the LwDITA authoring format based on Markdown.</p>
  16. <p>Recent proposals for LwDITA include two profiles for authoring MDITA topics:</p>
  17. <ul>
  18. <li>The “<term>Core profile</term>” is based on <xref keyref="gfm-spec"/> and includes elements that are common
  19. to many other Markdown implementations.</li>
  20. <li>The “<term>Extended profile</term>” borrows additional features from other flavors of Markdown to represent
  21. a broader range of DITA content with existing plain-text syntax conventions.</li>
  22. </ul>
  23. <p>The Markdown DITA parser included in the <codeph>org.lwdita</codeph> plug-in provides preliminary support for
  24. these profiles and additional Markdown constructs as described in the syntax reference.</p>
  25. <p>The <xmlatt>format</xmlatt> attribute can be set to <codeph>mdita</codeph> to apply LwDITA-specific processing
  26. to Markdown topics:</p>
  27. <p>
  28. <codeblock>&lt;map>
  29. &lt;topicref href="mdita-topic.md" <b>format="mdita"</b>/>
  30. &lt;/map></codeblock>
  31. </p>
  32. <p>In this case, the first paragraph in the topic will be treated as a short description, for example, and
  33. additional metadata can be specified for the topic via a YAML front matter block.</p>
  34. <note>Setting the <xmlatt>format</xmlatt> attribute to <codeph>mdita</codeph> triggers stricter parsing than the
  35. more lenient document parsing approach that is applied to <codeph>markdown</codeph> documents.</note>
  36. </section>
  37. <section>
  38. <title>HDITA</title>
  39. <p>HDITA is the LwDITA authoring format based on HTML5, which is intended to support structured content authoring
  40. with tools designed for HTML authoring. HDITA also uses custom data attributes to provide interoperability with
  41. DITA.</p>
  42. <p>The HDITA parser included in the <codeph>org.lwdita</codeph> plug-in provides preliminary support for these
  43. constructs.</p>
  44. <p>The <xmlatt>format</xmlatt> attribute can be set to <codeph>hdita</codeph> to apply LwDITA-specific processing
  45. to HTML topics:</p>
  46. <p>
  47. <codeblock>&lt;map>
  48. &lt;topicref href="hdita-topic.html" <b>format="hdita"</b>/>
  49. &lt;/map></codeblock>
  50. </p>
  51. </section>
  52. <note type="attention">Since
  53. <xref keyref="lwdita"/> has not yet been released as a formal specification, the implementation for MDITA and
  54. HDITA authoring formats is subject to change. Future versions of DITA Open Toolkit will be updated as LwDITA
  55. evolves.</note>
  56. </body>
  57. </topic>