MarkBind / markbind

MarkBind is a tool for generating content-heavy websites from source files in Markdown format
https://markbind.org/
MIT License
134 stars 123 forks source link

Allow users to define the height/width in percentages for Pic and Annotate #2468

Open LamJiuFong opened 3 months ago

LamJiuFong commented 3 months ago

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

No response

What is the area that this feature belongs to?

Author Usability

Is your feature request related to a problem? Please describe.

Current implementation of Pic and Annotate only allows users to define width and height in pixels.

Describe the solution you'd like

Use regex to check if user's input is in the format "xx%", if yes, build the html component with relative width/height

Describe alternatives you've considered

No response

Additional context

No response