Fix markdown line breaks, fix pre-commit

This commit is contained in:
Nassim Jahnke 2022-06-28 23:09:04 +02:00
parent 29b91fcc46
commit d1969e0416
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
cd frontend-new
cd frontend
pnpm prettier --write src/types/generated/**.*
pnpm lint-staged

View File

@ -92,7 +92,7 @@ function setupAdmonition() {
</script>
<template>
<div :class="{ 'prose max-w-full rounded markdown hyphens-auto break-all': true, 'p-4': !inline, inline: inline }">
<div :class="{ 'prose max-w-full rounded markdown break-words': true, 'p-4': !inline, inline: inline }">
<!-- eslint-disable-next-line vue/no-v-html -->
<div v-if="!loading" v-bind="$attrs" v-html="renderedMarkdown" />
<div v-else><Spinner class="stroke-gray-400" /></div>