default.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // markdown-it default options
  2. 'use strict';
  3. module.exports = {
  4. options: {
  5. html: false, // Enable HTML tags in source
  6. xhtmlOut: false, // Use '/' to close single tags (<br />)
  7. breaks: false, // Convert '\n' in paragraphs into <br>
  8. langPrefix: 'language-', // CSS language prefix for fenced blocks
  9. linkify: false, // autoconvert URL-like texts to links
  10. // Enable some language-neutral replacements + quotes beautification
  11. typographer: false,
  12. // Double + single quotes replacement pairs, when typographer enabled,
  13. // and smartquotes on. Could be either a String or an Array.
  14. //
  15. // For example, you can use '«»„“' for Russian, '„“‚‘' for German,
  16. // and ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'] for French (including nbsp).
  17. quotes: '\u201c\u201d\u2018\u2019', /* “”‘’ */
  18. // Highlighter function. Should return escaped HTML,
  19. // or '' if the source string is not changed and should be escaped externaly.
  20. // If result starts with <pre... internal wrapper is skipped.
  21. //
  22. // function (/*str, lang*/) { return ''; }
  23. //
  24. highlight: null,
  25. maxNesting: 100 // Internal protection, recursion limit
  26. },
  27. components: {
  28. core: {},
  29. block: {},
  30. inline: {}
  31. }
  32. };