Markdown table styling (#32)

This commit is contained in:
Geometrically
2023-03-31 10:54:04 -07:00
committed by GitHub
parent 78840157ef
commit 40026fbf53
6 changed files with 82 additions and 76 deletions

View File

@@ -0,0 +1,38 @@
# Markdown
<script setup>
import { renderHighlightedString } from 'omorphia';
import { ref } from 'vue';
const b = '`';
const body = ref('');
fetch('https://raw.githubusercontent.com/joeyespo/grip/master/tests/input/gfm-test.md')
.then((response) => response.text())
.then((response) => body.value = response)
</script>
:::raw
<DemoContainer>
<div style="width: 100%" class="markdown-body" v-html="renderHighlightedString(body)" />
</DemoContainer>
:::
<style lang="scss">
h1, h2, h3, h4, h5, h6 {
line-height: 1.15;
font-weight: revert;
font-size: revert;
margin: revert;
}
ul, ol {
list-style: revert;
margin: revert;
padding: revert;
}
blockquote {
margin: revert;
}
</style>

View File

@@ -1,47 +0,0 @@
# NavRow
Note: the links and animation do not work in the documentation as Vue Router is not used for routing
<DemoContainer>
<NavRow :links="[
{
label: 'Avatar',
href: '/components/avatar.html',
},
{
label: 'Badge',
href: '/components/nav-row.html',
},
{
label: 'Pagination',
href: '/components/Pagination.html',
},
{
label: 'NavRow',
href: '/components/nav-row.html',
}
]"
/>
</DemoContainer>
```vue
<NavRow :links="[
{
label: 'Avatar',
href: '/components/avatar.html',
},
{
label: 'Badge',
href: '/components/nav-row.html',
},
{
label: 'Pagination',
href: '/components/Pagination.html',
},
{
label: 'NavRow',
href: '/components/nav-row.html',
}
]"
/>
```