Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Fragmented list #188

Closed
nalmeida opened this issue Nov 29, 2019 · 2 comments
Closed

Disable Fragmented list #188

nalmeida opened this issue Nov 29, 2019 · 2 comments

Comments

@nalmeida
Copy link

Is there an option / config to disable "Fragmented list" ?

@yhatt
Copy link
Member

yhatt commented Nov 30, 2019

No, there isn't easy way to disable. In Marpit framework we had thought about configurable fragmented list once but we prioritized the less-configuration.

  • Simply use - / 1. instead of * / 1) to avoid fragmented list.
  • Marp CLI can customize engine via JavaScript. Try to use --engine engine.js option with this if you want to disable:
// engine.js
// You have to run `npm i @marp-team/marp-core` at first.
const { Marp } = require('@marp-team/marp-core')

module.exports = opts => {
  const marp = new Marp(opts)

  // Disable parsing fragmented list
  marp.markdown.core.ruler.disable('marpit_fragment')

  return marp
}

Please feedback to the issue tracker of Marpit framework if you think that is better to provide a way for disabling fragmented list via such as directive.

@nalmeida
Copy link
Author

nalmeida commented Dec 2, 2019

Used the - and 1. notation.

@nalmeida nalmeida closed this as completed Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants