Skip to content

Pdf transform: link with formatting do not get properly translated #470

@jeromesimeon

Description

@jeromesimeon

Bug Report 🐛

If a link contains formatted text (e.g., emphasized) it is sometimes not rendered into pdf.

Expected Behavior

Links should be properly rendered.

Current Behavior

Links are not always properly rendered.

Possible Solution

Render the links that are not properly rendered.

Steps to Reproduce

  1. Example CiceroMark:
    {
      "$class": "org.accordproject.commonmark.Document",
      "xmlns": "http://commonmark.org/xml/1.0",
      "nodes": [
          {
              "$class": "org.accordproject.commonmark.Link",
              "destination": "https://docusign.com",
              "title": "This link",
              "nodes": [
                  {
                      "$class": "org.accordproject.commonmark.Emph",
                      "nodes": [
                          {
                              "$class": "org.accordproject.commonmark.Text",
                              "text": "This link"
                          }
                      ]
                  }
              ]
          },
          {
              "$class": "org.accordproject.commonmark.Emph",
              "nodes": [
                  {
                      "$class": "org.accordproject.commonmark.Text",
                      "text": " is to DocuSign."
                  }
              ]
          }
      ]
    }
    
  2. Convert to pdf: markus transform --from commonmark --to pdf --input ./link.json --output test.pdf
  3. Attached is the pdf where the link is missing.

test.pdf

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions