constructs.js 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. 'use strict'
  2. Object.defineProperty(exports, '__esModule', {value: true})
  3. var text$1 = require('./initialize/text.js')
  4. var attention = require('./tokenize/attention.js')
  5. var autolink = require('./tokenize/autolink.js')
  6. var blockQuote = require('./tokenize/block-quote.js')
  7. var characterEscape = require('./tokenize/character-escape.js')
  8. var characterReference = require('./tokenize/character-reference.js')
  9. var codeFenced = require('./tokenize/code-fenced.js')
  10. var codeIndented = require('./tokenize/code-indented.js')
  11. var codeText = require('./tokenize/code-text.js')
  12. var definition = require('./tokenize/definition.js')
  13. var hardBreakEscape = require('./tokenize/hard-break-escape.js')
  14. var headingAtx = require('./tokenize/heading-atx.js')
  15. var htmlFlow = require('./tokenize/html-flow.js')
  16. var htmlText = require('./tokenize/html-text.js')
  17. var labelEnd = require('./tokenize/label-end.js')
  18. var labelStartImage = require('./tokenize/label-start-image.js')
  19. var labelStartLink = require('./tokenize/label-start-link.js')
  20. var lineEnding = require('./tokenize/line-ending.js')
  21. var list = require('./tokenize/list.js')
  22. var setextUnderline = require('./tokenize/setext-underline.js')
  23. var thematicBreak = require('./tokenize/thematic-break.js')
  24. var document = {
  25. 42: list, // Asterisk
  26. 43: list, // Plus sign
  27. 45: list, // Dash
  28. 48: list, // 0
  29. 49: list, // 1
  30. 50: list, // 2
  31. 51: list, // 3
  32. 52: list, // 4
  33. 53: list, // 5
  34. 54: list, // 6
  35. 55: list, // 7
  36. 56: list, // 8
  37. 57: list, // 9
  38. 62: blockQuote // Greater than
  39. }
  40. var contentInitial = {
  41. 91: definition // Left square bracket
  42. }
  43. var flowInitial = {
  44. '-2': codeIndented, // Horizontal tab
  45. '-1': codeIndented, // Virtual space
  46. 32: codeIndented // Space
  47. }
  48. var flow = {
  49. 35: headingAtx, // Number sign
  50. 42: thematicBreak, // Asterisk
  51. 45: [setextUnderline, thematicBreak], // Dash
  52. 60: htmlFlow, // Less than
  53. 61: setextUnderline, // Equals to
  54. 95: thematicBreak, // Underscore
  55. 96: codeFenced, // Grave accent
  56. 126: codeFenced // Tilde
  57. }
  58. var string = {
  59. 38: characterReference, // Ampersand
  60. 92: characterEscape // Backslash
  61. }
  62. var text = {
  63. '-5': lineEnding, // Carriage return
  64. '-4': lineEnding, // Line feed
  65. '-3': lineEnding, // Carriage return + line feed
  66. 33: labelStartImage, // Exclamation mark
  67. 38: characterReference, // Ampersand
  68. 42: attention, // Asterisk
  69. 60: [autolink, htmlText], // Less than
  70. 91: labelStartLink, // Left square bracket
  71. 92: [hardBreakEscape, characterEscape], // Backslash
  72. 93: labelEnd, // Right square bracket
  73. 95: attention, // Underscore
  74. 96: codeText // Grave accent
  75. }
  76. var insideSpan = {
  77. null: [attention, text$1.resolver]
  78. }
  79. var disable = {null: []}
  80. exports.contentInitial = contentInitial
  81. exports.disable = disable
  82. exports.document = document
  83. exports.flow = flow
  84. exports.flowInitial = flowInitial
  85. exports.insideSpan = insideSpan
  86. exports.string = string
  87. exports.text = text