Skip to content

Ignore mid-paragraph line breaks #435

Answered by yhatt
setrofim asked this question in Q&A
Discussion options

You must be logged in to vote

In Marp CLI, you can set markdown-it's constructor option breaks to false by using Marp CLI configuration file.
https://github.com/marp-team/marp-cli#configuration-file

// 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 markdown.marp.breaks to off.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@setrofim
Comment options

Answer selected by setrofim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants