Skip to content

Commit

Permalink
fix: reduce margin-bottom on markdown images (#235)
Browse files Browse the repository at this point in the history
* Disable margin bottom on image

The result is better on images with caption defined as: 
```
![alt text](/path/to/img)
*caption*
```

* refactor: combine mt and mb into my-2

---------

Co-authored-by: satnaing <[email protected]>
  • Loading branch information
davlgd and satnaing authored Jan 15, 2024
1 parent 3efa05c commit 1331795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
prose-ul:overflow-x-clip prose-ul:!text-skin-base prose-li:marker:!text-skin-accent
prose-table:text-skin-base prose-th:border
prose-th:border-skin-line prose-td:border
prose-td:border-skin-line prose-img:mx-auto
prose-img:!mt-2 prose-img:border-2
prose-td:border-skin-line prose-img:!my-2
prose-img:mx-auto prose-img:border-2
prose-img:border-skin-line prose-hr:!border-skin-line;
}
.prose a {
Expand Down

0 comments on commit 1331795

Please sign in to comment.