markdown-transform icon indicating copy to clipboard operation
markdown-transform copied to clipboard

Pdf transform: link with formatting do not get properly translated

Open jeromesimeon opened this issue 4 years ago • 0 comments

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

jeromesimeon avatar Oct 26 '21 09:10 jeromesimeon