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.46k stars 173 forks source link

PlantUML image width #266

Open Hipska opened 5 years ago

Hipska commented 5 years ago

Hi, I have a similar problem as in #19 it seems, but as I don't speak Japanese, I can't figure out what could be the solution.

I don't want my images to have a limited width, so I tried this in my custom CSS:

.markdown-preview.markdown-preview {
  // modify your style here
  // eg: background-color: blue;  
  svg {
    max-width: none;
    background-color: blue;
  }
}

Background color only there to see if the css works. I also tried width: 150; to see any changes, but nothing seems to work.

Could there also be an option to change the plantUML output to be an image instead of svg?

shd101wyy commented 5 years ago

How about adding !important after none? Can I see your plantuml code so I can test it. Thanks

Hipska commented 5 years ago

Strange, it works with a basic plantUML code even without the !important.

This advanced code does still keep a fixed width?