Uploaded image for project: 'Maven Doxia'
  1. Maven Doxia
  2. DOXIA-554

Parsing Markdown documents can hang site generation: switch parser from Pegdown to Flexmark

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7
    • 1.8
    • Module - Markdown
    • None

    Description

      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 and advises to switch to flexmark-java.

      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.

      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

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hboutemy Herve Boutemy
            focbenz Michael Benz
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment