You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hervé Boutemy (JIRA)" <ji...@apache.org> on 2017/10/01 18:45:01 UTC

[jira] [Commented] (DOXIA-561) 2nd level header is dropped from rendered Markdown document in filtering mode

    [ https://issues.apache.org/jira/browse/DOXIA-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16187491#comment-16187491 ] 

Hervé Boutemy commented on DOXIA-561:
-------------------------------------

see DOXIASITETOOLS-133 and MSITE-756 to get a dump of {{src/site/markdown/CHANGELOG.md.vm}} after Velocity processingn then {{target/generated-site/processed/markdown/CHANGELOG.md}}

you'll see that {{##}} is a comment in Velocity http://velocity.apache.org/engine/devel/user-guide.html#comments

Then Velocity removes the line from Markdown source before Doxia processes it

> 2nd level header is dropped from rendered Markdown document in filtering mode
> -----------------------------------------------------------------------------
>
>                 Key: DOXIA-561
>                 URL: https://issues.apache.org/jira/browse/DOXIA-561
>             Project: Maven Doxia
>          Issue Type: Bug
>          Components: Module - Markdown
>    Affects Versions: 1.7
>         Environment: Maven home: /mx/build/apache-maven-3.5.0
> Java version: 1.8.0_152-ea, vendor: Oracle Corporation
> Java home: /mx/software/jdk1.8.0_152-b02/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.10.0-33-generic", arch: "amd64", family: "unix"
>            Reporter: Behrooz Nobakht
>
> - Example document using "filtering" mode at {{src/site/markdown/CHANGELOG.md.vm}}:
> {code}
> # CHANGELONG
> This is the changelog.
> ## v${project.version}
> - Item 1
> - Item 2
> {code}
> The rendered HTML does *not* include the 2nd level header.
> - When I change the above document as:
> {code}
> # CHANGELONG
> This is the changelog.
> v${project.version}
> ------
> - Item 1
> - Item 2
> {code}
> The rendering is OK.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)