maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DOXIA-559) Doxia macro fails with markdown headers past level 4
Date Fri, 08 Sep 2017 09:34:00 GMT

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

Steve Loughran commented on DOXIA-559:
--------------------------------------

Thanks for looking at this BTW, maybe just mark as cannot-reproduce?

> Doxia macro fails with markdown headers past level 4
> ----------------------------------------------------
>
>                 Key: DOXIA-559
>                 URL: https://issues.apache.org/jira/browse/DOXIA-559
>             Project: Maven Doxia
>          Issue Type: Bug
>          Components: Module - Markdown
>    Affects Versions: 1.7
>            Reporter: Alex O'Ree
>         Attachments: toc-macro-test.md
>
>
> attempting to include the TOC using a markdown file. If you have any headers past level
3, the TOC fails
> using maven site plugin version 3.6, which looks like it's using doxia 1.7.4a
> I c&p'd http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-markdown/src/test/resources/macro-toc.md?view=markup&pathrev=1716285#l2
> however no TOC is outputted on a test.md.vm file.
> If I change the file name to test.md (dropping the vm extension), I get a stack dump.
"EmtpyStackException" when rendering this file. Not sure what I'm doing wrong
> {noformat}Caused by: java.util.EmptyStackException
>         at java.util.Stack.peek(Unknown Source)
>         at org.apache.maven.doxia.index.IndexingSink.peek(IndexingSink.java:292)
>         at org.apache.maven.doxia.index.IndexingSink.text(IndexingSink.java:239)
>         at org.apache.maven.doxia.sink.impl.SinkAdapter.text(SinkAdapter.java:874)
>         at org.apache.maven.doxia.parser.XhtmlBaseParser.handleText(XhtmlBaseParser.java:783)
>         at org.apache.maven.doxia.parser.AbstractXmlParser.parseXml(AbstractXmlParser.java:254)
>         at org.apache.maven.doxia.parser.AbstractXmlParser.parse(AbstractXmlParser.java:145)
>         at org.apache.maven.doxia.parser.XhtmlBaseParser.parse(XhtmlBaseParser.java:96)
>         at org.apache.maven.doxia.module.xhtml.XhtmlParser.parse(XhtmlParser.java:356)
>         at org.apache.maven.doxia.macro.toc.TocMacro.execute(TocMacro.java:117)
>         at org.apache.maven.doxia.parser.AbstractParser.executeMacro(AbstractParser.java:136)
>         at org.apache.maven.doxia.module.xhtml.XhtmlParser.processMacro(XhtmlParser.java:268)
>         at org.apache.maven.doxia.module.xhtml.XhtmlParser.handleComment(XhtmlParser.java:233)
>         at org.apache.maven.doxia.parser.AbstractXmlParser.parseXml(AbstractXmlParser.java:263)
>         at org.apache.maven.doxia.parser.AbstractXmlParser.parse(AbstractXmlParser.java:145)
>         at org.apache.maven.doxia.parser.XhtmlBaseParser.parse(XhtmlBaseParser.java:96)
>         at org.apache.maven.doxia.module.xhtml.XhtmlParser.parse(XhtmlParser.java:356)
>         at org.apache.maven.doxia.module.markdown.MarkdownParser.parse(MarkdownParser.java:112
>         at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:65)
>         at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:449)
>         at org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:53)
>         at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:337)
>         at org.apache.maven.plugins.site.render.SiteMojo.renderDoxiaDocuments(SiteMojo.java:262)
>         at org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java:168)
>         at org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:132)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>         ... 21 more{noformat}



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

Mime
View raw message