Skip to content

Commit

Permalink
feat: add plugin for soft breaks in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
madcampos committed Jan 16, 2024
1 parent 72be420 commit cfd8078
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
6 changes: 5 additions & 1 deletion astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { readFileSync } from 'node:fs';

import { defineConfig } from 'astro/config';
import astroPWA, { type PwaOptions } from '@vite-pwa/astro';

import remarkBreaks from 'remark-breaks';

const manifest: PwaOptions['manifest'] = JSON.parse(readFileSync('./src/manifest.json', { encoding: 'utf8' }));

export default defineConfig({
Expand All @@ -20,7 +23,8 @@ export default defineConfig({
markdown: {
shikiConfig: {
theme: 'dark-plus'
}
},
remarkPlugins: [remarkBreaks]
},
integrations: [
astroPWA({
Expand Down
30 changes: 30 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"lint-staged": "^15.2.0",
"marked": "^11.1.1",
"postcss-html": "^1.6.0",
"remark-breaks": "^4.0.0",
"stylelint": "^16.1.0",
"stylelint-config-html": "^1.1.0",
"typescript": "^5.3.3"
Expand Down

0 comments on commit cfd8078

Please sign in to comment.