Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdf transform: bold and italics do not work #448

Closed
jeromesimeon opened this issue Aug 15, 2021 · 1 comment · Fixed by #449
Closed

pdf transform: bold and italics do not work #448

jeromesimeon opened this issue Aug 15, 2021 · 1 comment · Fixed by #449
Labels

Comments

@jeromesimeon
Copy link
Member

Bug Report 🐛

Bold and italics are not exported to pdf.

Steps to Reproduce

Taking the following markdown document:

This is _foo_ and **bar** and **_foobar_**

And exporting it with:

markus transform --from markdown_cicero --to pdf --input test.md --output test.pdf

Results in the following pdf where italics and bold are absent.

test.pdf

@jeromesimeon
Copy link
Member Author

Here is the relevant part of the pdfmake JSON:

{
  "style": "Document",
  "content": [
    {
      "style": "Paragraph",
      "text": [
        {
          "text": "This is "
        },
        {
          "style": "Emph",
          "text": [
            {
              "text": "foo"
            }
          ],
          "italics": true
        },
        {
          "text": " and "
        },
        {
          "style": "Strong",
          "text": [
            {
              "text": "bar"
            }
          ],
          "bold": true
        },
        {
          "text": " and "
        },
        {
          "style": "Strong",
          "text": [
            {
              "style": "Emph",
              "text": [
                {
                  "text": "foobar"
                }
              ],
              "italics": true
            }
          ],
          "bold": true
        }
      ],
      "margin": [
        0,
        5
      ]
    }
  ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant