Markdown Preview Enhanced (MPE) allows users to preview classDiagram using mermaid code blocks and export them as HTML successfully. However, when the users try to export the diagrams as PDF files, they only get the code and not the corresponding image. For instance, the following mermaid code:
classDiagram
class GetBodyInterface
class DealEveryItemBody
class DealAllItemFromTotal
class DealAllItemFromTotalAssignPort
class DealSubIitem
class GetDataByDate
class DealSubItemInfo
class DealSubItemMergeInfo
class GetDataFromXXXBox
class DealEveryItemBodyPost
class DealXXXXXXNEW
class DealXXXIDnew
class DealXXXXXXNEW
class GetYYYNEW
class GetDataByDateFromHtml
DealEveryItemBody --|> GetBodyInterface
DealAllItemFromTotal --|> DealEveryItemBody
DealAllItemFromTotalAssignPort --|> DealAllItemFromTotal
DealSubIitem --|> DealAllItemFromTotal
GetDataByDate --|> DealAllItemFromTotal
DealSubItemInfo --|> DealAllItemFromTotal
DealSubItemMergeInfo --|> DealAllItemFromTotal
GetDataFromXXXBox--|> DealEveryItemBody
DealEveryItemBodyPost --|> DealEveryItemBody
DealXXXXXXNEW --|> DealEveryItemBody
DealXXXIDnew --|> DealXXXXXXNEW
GetYYYNEW --|> GetDataFromXXXBox
GetXXXNEW --|> GetDataFromXXXBox
GetDataByDateFromHtml --|> GetDataByDate
When exported as PDF, it appears as plaintext and not as an image.
Expected Behavior: The users should be able to export mermaid diagrams as images in PDF format when using MPE.
Steps to Reproduce:
Create a new markdown file in MPE.
Insert a mermaid code block with classDiagram.
Export the file as PDF.
Observe that the diagram appears as plaintext instead of an image.
Issue Title: Unable to export mermaid diagrams as images in PDF format
Possible Solution: Provide an option to export mermaid diagrams as images in PDF format.
Environment:
Operating System: [win11]
MPE Version: [v0.6.8]
Possible Solution: Provide an option to export mermaid diagrams as images in PDF format.
The text was updated successfully, but these errors were encountered:
Markdown Preview Enhanced (MPE) allows users to preview classDiagram using mermaid code blocks and export them as HTML successfully. However, when the users try to export the diagrams as PDF files, they only get the code and not the corresponding image. For instance, the following mermaid code:
classDiagram class GetBodyInterface class DealEveryItemBody class DealAllItemFromTotal class DealAllItemFromTotalAssignPort class DealSubIitem class GetDataByDate class DealSubItemInfo class DealSubItemMergeInfo class GetDataFromXXXBox class DealEveryItemBodyPost class DealXXXXXXNEW class DealXXXIDnew class DealXXXXXXNEW class GetYYYNEW class GetDataByDateFromHtml DealEveryItemBody --|> GetBodyInterface DealAllItemFromTotal --|> DealEveryItemBody DealAllItemFromTotalAssignPort --|> DealAllItemFromTotal DealSubIitem --|> DealAllItemFromTotal GetDataByDate --|> DealAllItemFromTotal DealSubItemInfo --|> DealAllItemFromTotal DealSubItemMergeInfo --|> DealAllItemFromTotal GetDataFromXXXBox--|> DealEveryItemBody DealEveryItemBodyPost --|> DealEveryItemBody DealXXXXXXNEW --|> DealEveryItemBody DealXXXIDnew --|> DealXXXXXXNEW GetYYYNEW --|> GetDataFromXXXBox GetXXXNEW --|> GetDataFromXXXBox GetDataByDateFromHtml --|> GetDataByDateWhen exported as PDF, it appears as plaintext and not as an image.
Expected Behavior: The users should be able to export mermaid diagrams as images in PDF format when using MPE.
Steps to Reproduce:
Issue Title: Unable to export mermaid diagrams as images in PDF format
Possible Solution: Provide an option to export mermaid diagrams as images in PDF format.
Environment:
Possible Solution: Provide an option to export mermaid diagrams as images in PDF format.
The text was updated successfully, but these errors were encountered: