diff --git a/src/components/organisms/AssetContent/index.module.css b/src/components/organisms/AssetContent/index.module.css index f1023ffcb..fd6784518 100644 --- a/src/components/organisms/AssetContent/index.module.css +++ b/src/components/organisms/AssetContent/index.module.css @@ -47,3 +47,22 @@ margin-top: var(--spacer); margin-bottom: var(--spacer); } + +/* Markdown tweaks */ + +.description h1 { + font-size: var(--font-size-h3); +} + +.description h2 { + font-size: var(--font-size-h4); +} + +.description h3 { + font-size: var(--font-size-large); +} + +.description h4, +.description h5 { + font-size: var(--font-size-base); +} diff --git a/src/components/organisms/AssetContent/index.tsx b/src/components/organisms/AssetContent/index.tsx index 5e08ef182..63e4bffac 100644 --- a/src/components/organisms/AssetContent/index.tsx +++ b/src/components/organisms/AssetContent/index.tsx @@ -65,7 +65,10 @@ export default function AssetContent({ )} - + diff --git a/src/components/pages/Publish/Preview.module.css b/src/components/pages/Publish/Preview.module.css index 50db0dfd8..2e3f18bfa 100644 --- a/src/components/pages/Publish/Preview.module.css +++ b/src/components/pages/Publish/Preview.module.css @@ -40,6 +40,25 @@ margin-top: calc(var(--spacer) / 4); } +/* Markdown tweaks */ + +.description h1 { + font-size: var(--font-size-h3); +} + +.description h2 { + font-size: var(--font-size-h4); +} + +.description h3 { + font-size: var(--font-size-large); +} + +.description h4, +.description h5 { + font-size: var(--font-size-base); +} + .toggle { position: absolute; bottom: 0.15rem;