shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.41k stars 170 forks source link

`scale` command of plantuml is handled incorrectly when used with wavedrom #822

Open iaimf opened 2 years ago

iaimf commented 2 years ago

Scale of plantuml is handled incorrectly when a markdown file contains a plantuml code block and a wavedrom code block.

For MPE versions of v0.6.0 and v0.6.3:

Bad case (characters are overlapping): image

Good case (character font is correctly small): image

iaimf commented 2 years ago

For MPE of version v0.5.22, the problem appears differently.

Case (font height is larger): image

Case (font height is smaller): image

iaimf commented 2 years ago

The code to reproduce the problem is below:

```plantuml
@startuml
scale 0.6
component GroundSystem
component Payload 
@enduml
{ signal: [
  { name: 'UART', wave: 'x.==.|=x...',  
  data: 'start SyncCmd stop' },
  ]
}