mirror of
https://github.com/quartz-community/hard-line-breaks.git
synced 2026-11-16 23:53:35 +00:00
Quartz's default hard line breaks plugin.
- TypeScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .changeset | ||
| .github/workflows | ||
| src | ||
| types | ||
| .eslintrc.json | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsup.config.ts | ||
| vitest.config.ts | ||
@quartz-community/hard-line-breaks
[!warning] Deprecated Line breaks are handled by ObsidianFlavoredMarkdown 2.0+: a single line break renders as
<br>by default (preset: legacy), as in Obsidian. Set itsstrictLineBreaksoption totruefor spaces instead. Remove this plugin (npx quartz plugin remove hard-line-breaks) unless your site doesn't use ObsidianFlavoredMarkdown; Quartz warns while it is enabled.
Converts single newlines in markdown to hard line breaks (like pressing Shift+Enter).
Installation
npx quartz plugin add @quartz-community/hard-line-breaks
Usage
plugins:
- source: "@quartz-community/hard-line-breaks"
enabled: true
Configuration
This plugin has no configuration options.
Documentation
See the Quartz documentation for more information.
License
MIT