Uploaded image for project: 'Maven Doxia'
  1. Maven Doxia
  2. DOXIA-617

doxia-module-markdown: Add support for --- header section marks

    XMLWordPrintableJSON

Details

    Description

      Use Case

      It is "generally" accepted that document header metadata in Markdown (like title, author, etc.) must be specified inside a header section, delimited with 3 hypens:

      ---
      title: My Doc Title
      author: Myself
      keywords: great,doc
      ---
      # Introduction
      ...
      

      See:

      Currently, the only supported syntax for document header metadata is the very same as above, but without the 3 hypens marking the header section:

      title: My Doc Title
      author: Myself
      keywords: great,doc
      
      # Introduction
      ...
      

      Specification

      Enable the YAML Front Matter Extension of Flexmark so that such header is processed automatically (nothing to code here!)

      Keep the default behavior (we want backward compatibility) with the parsing of metadatas (which won't be affected by the YAML Front Matter parsing).

      Doc

      Update the documentation on how to use Markdown in Doxia. This feature (document metadata) is currently not documented.

      We should have a small guide on how to use Markdown in Doxia, and its specific features (metadatas, macros, etc.)

      Test

      Add corresponding unit tests and integration tests (for both old and new syntaxes)

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              bertrandmartin Bertrand Martin
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: