Skip to content

Translation Helper bugs #349

Description

@heyuxian

Describe the bug
When the URL contains an anchor, the Translation Helper API does not render the URL properly.

  • Parser
  • HtmlRenderer
  • Formatter
  • FlexmarkHtmlParser
  • DocxRenderer
  • PdfConverterExtension
  • extension(s)

To Reproduce

Test Code:

Just add an anchor to the URL:

final String markdown = "This is [*Sparta*](http://sparta.com)";
=>
final String markdown = "This is [*Sparta*](http://sparta.com#anchor)";

Resulting Output

This is [*Sparta*](http://sparta.com#anchor)
--------------------------
<<<*Sparta*
>>>*sPaARTaA*
<<<This is [_1_](_2_#_1_)
>>>thiIS iIS [_1_](_2_#_1_)
--------------------------
thiIS iIS [*sPaARTaA*](http://sparta.com#_1_)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions