Update CSS guidelines + Prefer rem

This commit is contained in:
venashial
2022-06-07 14:00:53 -07:00
parent c9ec9f14de
commit eb171ecb21
52 changed files with 768 additions and 606 deletions

View File

@@ -12,13 +12,14 @@ The `markdown` parser is designed for bodies of markdown text and supports image
> Use the `.markdown` class on the element containing your parsed markdown.
```svelte example
````svelte example
<script lang="ts">
import { markdown } from 'omorphia/utils'
const source =
'## Example markdown \n\
This is **some** *text*! \n\
`console.log("test")` \n\
#### An image \n\
<img src="https://cdn.modrinth.com/data/YL57xq9U/images/d382106b9a2b943d06107c31c139c77849f1a0e8.png" />'
</script>
@@ -26,7 +27,10 @@ The `markdown` parser is designed for bodies of markdown text and supports image
<div class="card markdown">
{@html markdown(source)}
</div>
```
<div class="card markdown">
{@html markdown('test\n```js\nconsole.log("test")\n```')}
</div>
````
### Inline parser