-
Is there a way (a cmline flag, or a directive, etc) to get marp to behave similar to most other markdown-->html renderers with respect to handling line breaks? I.e. to ignore them inside paragraphs (unless inside a code block). |
Beta Was this translation helpful? Give feedback.
Answered by
yhatt
Apr 27, 2023
Replies: 1 comment 1 reply
-
In Marp CLI, you can set markdown-it's constructor option // marp.config.js
module.exports = {
// Set custom Marp Core constructor options
// https://github.com/marp-team/marp-core#constructor-options
options: {
// markdown-it constructor options managed by Marp Core
// https://github.com/markdown-it/markdown-it#init-with-presets-and-options
markdown: {
breaks: false
}
}
} If you are using Marp for VS Code, you can disable hardbreaks in the extension preference too. Set |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
setrofim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Marp CLI, you can set markdown-it's constructor option
breaks
tofalse
by using Marp CLI configuration file.https://github.com/marp-team/marp-cli#configuration-file
If you are using Marp for VS Code, you can disable hardbreaks in the extension preference too. Set
markdown.marp.breaks
tooff
.