obsidian-contextual-typography
obsidian-contextual-typography copied to clipboard
Missing text in pdf export
I do not know how this unexpected behaviour is created, but when I activate contextual typography I find that exported pdf files regularly miss seemingly random paragraphs of the document's plain text.
Deactivating the plugin and restarting Obsidian leads to complete pdf text again.
I am not sure whether the problem is actually created by contextual typography as I have quite a number of plugins activated. It might also be that there is some incompatibility to other plugins.
I also encountered the same problem. If the document has a large number of images, the export function is almost unavailable. contextual typography is a great plugin, I can't live without it, but I also need to use the function of exporting PDF, please fix this bug, thanks.
@MartinKorz @chenmaoran I haven't been able to reproduce this in my tests. Does this happen with obsidian's default theme? Also, does it happen in a sandbox vault (click on help, then open sandbox vault)?
@mgmeyers I created a new Vault with only the contextual typography plugin and corresponding CSS for your reference. In addition, the compressed package also contains the exported stamp widePDF file.
Download link:https://www.dropbox.com/t/FwjWqI2bVHKfcZyS
I've just encountered the same issue. No need for specific CSS styling. Only the plugin is needed to lose text in the sandbox vault. I've attached the file I wanted to export.
Thanks for taking a look at this!
I could replicate the example of tim-hilde. A minimal example might be:
# Section 1
This is the first paragraph of the first section. I'll add a second sentence to make it a bit longer. But as this is supposed to be a minimal example, the text shouldn't be too long either.

In this case, the paragraph is lost in the export. After deactivating contextual typography and restarting the vault, the pdf export does include the paragraph as expected.
At least in the tests that I did, the text loss:
- occurs also if the image does exist
- does not occur if the image is inserted as a wiki link with
![[nonexistantimage.png]]
Possibly it is markdown-syntax image inclusion which triggers the loss of text?
Still hope the author can fix this soon. Thank you!
Hey all. Finally figured out what this issue was. This should be fixed now. Let me know if you still run into issues.
My test pdfs look good now, thank you!