marked.js 804 B

1234567891011121314151617181920212223242526
  1. var md = {}
  2. md.marked = {
  3. defaults: {
  4. breaks: false,
  5. gfm: true,
  6. pedantic: false,
  7. sanitize: false,
  8. smartLists: false,
  9. smartypants: false,
  10. tables: true,
  11. langPrefix: 'language-' // prism
  12. },
  13. description: {
  14. breaks: 'Enable GFM line breaks\n(requires the gfm option to be true)',
  15. gfm: 'Enable GFM\n(GitHub Flavored Markdown)',
  16. pedantic: 'Don\'t fix any of the original markdown\nbugs or poor behavior',
  17. sanitize: 'Ignore any HTML\nthat has been input',
  18. smartLists: 'Use smarter list behavior\nthan the original markdown',
  19. smartypants: 'Use "smart" typographic punctuation\nfor things like quotes and dashes',
  20. tables: 'Enable GFM tables\n(requires the gfm option to be true)'
  21. },
  22. compile: (markdown) =>
  23. marked(markdown, state.marked)
  24. }