Fix mermaid diagram is not visiable when export html by Jocs · Pull Request #1732 · marktext/marktext
Conversation
| Q | A |
|---|---|
| Bug fix? | yes |
| Fixed tickets | #1670 |
| License | MIT |
Description
[Description of the bug or feature]
--
Please, don't submit /dist files with your PR!
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will show the document twice if you export a document. Please try this document with your change and you will notice that the exported HTML (.ag-render-container container) is visible while exporting. That's was the reason to hide the container.
That's was the reason to hide the container.
Hide this container will cause render mermaid\flowchart incorrectly. So we need to put it out of viewport(off screen).
Jocs
deleted the
fix-export-mermaid
branch
@Jocs The content is visible again during export on latest develop/v0.16.0-rc2. E.g. export a document with multiple paragraphs and some math formulas.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters