maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex O'Ree (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DOXIA-559) Doxia macro fails with markdown headers past level 4
Date Thu, 07 Sep 2017 23:47:00 GMT
Alex O'Ree created DOXIA-559:
--------------------------------

             Summary: 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
            Reporter: Alex O'Ree


see DOXIA-492

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

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



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

Mime
View raw message