default.mjs 1.3 KB

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