cyp
September 23, 2023, 3:03pm
1
I’m using a plugin named “Obsidian Typst” that uses asynchronous HTMLElement.
But, when exporting to pdf, only the one that managed to get drawn are exported.
You can reproduce the test by developping a plugin that has async “HTMLElement” or by using obsidian-typst with a file that has a lot of math equation.
It’s hard to tell if it is a bug, or not (sorry if my new topic isn’t a bug). But it would be nice to have a little API for PDF exporting, because for now I don’t know if there is a way to fix this problem.
@cyp Have you solved the problem? Having the same problem with react components.
cyp
December 13, 2023, 8:15am
3
No, still hoping this problem is fixed someday
ush
December 13, 2023, 8:47am
4
I’ve just taken a quick look over the code of the plugin, and I think this is essentially the same problem as the one discussed here:
opened 07:53PM - 23 Feb 21 UTC
closed 06:52AM - 02 Jan 22 UTC
✨ feature
When exporting a note to PDF in Obsidian, the output is not printed to the PDF. … Instead the codeblock is printed to the PDF.
**To Reproduce**
Steps to reproduce the behavior:
1. Add Todoist codeblock to a note
2. Check if output is shown correctly in Markdown preview mode.
3. Export the note to PDF
4. See codeblock printed on PDF instead of the markdown output
**Expected behavior**
The Markdown Preview output printed to the PDF
**Screenshots**
Editor:
![shot_210223_204727](https://user-images.githubusercontent.com/19724110/108899189-6d4d3080-7618-11eb-863e-77b0a3e656fa.png)
Markdown Preview
![shot_210223_204906](https://user-images.githubusercontent.com/19724110/108899328-979eee00-7618-11eb-83ba-c0ecd6f82854.png)
Rendered in exported PDF
![shot_210223_204657](https://user-images.githubusercontent.com/19724110/108899190-6de5c700-7618-11eb-80e9-bbd177981476.png)
**Desktop (please complete the following information):**
- Plugin v1.7.0
- Obsidian v0.11.0
**Additional context**
I inquired in the Obsidian forum: https://forum.obsidian.md/t/plugin-output-from-codefence-not-rendered-in-pdf-export/13497
The moderator asked me to submit a ticket here.
This is not Obsdiain’s bug. Basically, I think the problem is that the plugin author didn’t mark the markdown code block post-processor as async
.
1 Like
system
Closed
March 12, 2024, 8:47am
5
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.