Skip to content

Commit

Permalink
Merge branch 'master' into 2457-ping-new-contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
yucheng11122017 committed Apr 11, 2024
2 parents 7e26f6f + 362f761 commit 03bde6f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/userGuide/syntax/images.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,9 @@ Clicking on this image will bring you to the MarkBind homepage (instead of openi
[![logo](https://markbind.org/images/logo-lightbackground.png =150x)](https://markbind.org)
</variable>
</include>

<box type="info" seamless>

If you want to display images with captions, or have the image auto-resize to fit its container, take a look at [MarkBind's `pic` component]({{baseUrl}}/userGuide/components/imagesAndDiagrams.html#pictures).

</box>
6 changes: 6 additions & 0 deletions docs/userGuide/syntax/pictures.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ src | `string` | | **This must be specified.**<br>The URL of the image.<br>The U
width | `string` | | The width of the image in pixels.<br>If both width and height are specified, width takes priority over height. It is to maintain the image's aspect ratio.
lazy | `boolean` | false | The `<pic>` component lazy loads if this attribute is specified.<br>**Either the height or width should be specified to avoid layout shifts while lazy loading images.**

<box type="info" seamless>

If you want to display images that are automatically linked to its image URL, such that one can click on the image to view the full image, take a look at [MarkBind images]({{baseUrl}}/userGuide/formattingContents.html#images).

</box>

<div id="short" class="d-none">

```html
Expand Down

0 comments on commit 03bde6f

Please sign in to comment.