maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DOXIA-554) Parsing time for Markdown documents can take very long and hang site generation
Date Fri, 17 Mar 2017 22:32:41 GMT

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

Vladimir Schneider commented on DOXIA-554:
------------------------------------------

Thanks Marc. I got NetBeans installed and it builds and debugs out of the box. I can use it.
The PITA is that there is no Markdown plugin for NetBeans 8.2 and even if there was it is
underpowered. Having it running on NetBeans, I got it working on IntelliJ, so I can use my
Markdown plugin to see the HTML that will be generated by the test.

I am now doing comparison between doxia 1.7 with pegdown and 1.8 with flexmark to see why
there are differences because I cannot see where the differences would be from generated HTML
by old pegdown and flexmark-java. 



> Parsing time for Markdown documents can take very long and hang site generation
> -------------------------------------------------------------------------------
>
>                 Key: DOXIA-554
>                 URL: https://issues.apache.org/jira/browse/DOXIA-554
>             Project: Maven Doxia
>          Issue Type: Bug
>          Components: Module - Markdown
>    Affects Versions: 1.7
>            Reporter: Michael Benz
>         Attachments: maven-pom-sample-pegdown-performance.zip
>
>
> The parsing time for Markdown documents can take very long and hang site generation when
e.g. long tables are being generated.
> The author of pegdown has marked the pegdown project deprecated since 2016-12-14 [pegdown.org|https://github.com/sirthias/pegdown/]
and advises to switch to [flexmark-java|https://github.com/vsch/flexmark-java].
> {quote}
> The project is essentially unmaintained with tickets piling up and crucial bugs not being
fixed.
> pegdown's parsing performance isn't great. In some cases of pathological input runtime
can even become exponential, which means that the parser either appears to "hang" completely
or abort processing after a time-out.
> {quote}
> Since the parsing timeout was increased in DOXIA-498 it is now possible to "hang" the
site creation with a longer table like the one in this example.
> In case this sample is rendered using version 3.3 of the maven site



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message