You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2023/01/21 11:03:00 UTC
[jira] [Created] (DOXIA-690) Markdown Sink: Multiline metadata incorrectly rendered
Konrad Windszus created DOXIA-690:
-------------------------------------
Summary: Markdown Sink: Multiline metadata incorrectly rendered
Key: DOXIA-690
URL: https://issues.apache.org/jira/browse/DOXIA-690
Project: Maven Doxia
Issue Type: Bug
Components: Module - Markdown
Reporter: Konrad Windszus
Markdown uses the following metadata format: [http://fletcher.github.io/MultiMarkdown-5/metadata.html]
In case a metadata has multiple values on multiple lines it might appear as:
{code:java}
title: Guide to creating a site
author: Brett Porter
Jason van Zyl
date: 2015-07-18 {code}
That leads to incorrect XHTML output as the second line for {{author}} is not detected correctly and instead of being emitted as metadata is emitted as regular paragraph in the HTML body.
Although this might be a glitch of the underlying Markdown Flexmark implementation the metadata format explicitly recommends:
{quote}
To keep multiline metadata values from being confused with additional metadata, I recommend indenting each new line of metadata. If your metadata value includes a colon, it must be indented to keep it from being treated as a new key-value pair
{quote}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)