Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.js 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. 'use strict'
  2. // This module is compiled away!
  3. //
  4. // Parsing markdown comes with a couple of constants, such as minimum or maximum
  5. // sizes of certain sequences.
  6. // Additionally, there are a couple symbols used inside micromark.
  7. // These are all defined here, but compiled away by scripts.
  8. var constants = {
  9. attentionSideBefore: 1,
  10. // Symbol to mark an attention sequence as before content: `*a`
  11. attentionSideAfter: 2,
  12. // Symbol to mark an attention sequence as after content: `a*`
  13. atxHeadingOpeningFenceSizeMax: 6,
  14. // 6 number signs is fine, 7 isn’t.
  15. autolinkDomainSizeMax: 63,
  16. // 63 characters is fine, 64 is too many.
  17. autolinkSchemeSizeMax: 32,
  18. // 32 characters is fine, 33 is too many.
  19. cdataOpeningString: 'CDATA[',
  20. // And preceded by `<![`.
  21. characterGroupWhitespace: 1,
  22. // Symbol used to indicate a character is whitespace
  23. characterGroupPunctuation: 2,
  24. // Symbol used to indicate a character is whitespace
  25. characterReferenceDecimalSizeMax: 7,
  26. // `&#9999999;`.
  27. characterReferenceHexadecimalSizeMax: 6,
  28. // `&#xff9999;`.
  29. characterReferenceNamedSizeMax: 31,
  30. // `&CounterClockwiseContourIntegral;`.
  31. codeFencedSequenceSizeMin: 3,
  32. // At least 3 ticks or tildes are needed.
  33. contentTypeFlow: 'flow',
  34. contentTypeContent: 'content',
  35. contentTypeString: 'string',
  36. contentTypeText: 'text',
  37. hardBreakPrefixSizeMin: 2,
  38. // At least 2 trailing spaces are needed.
  39. htmlRaw: 1,
  40. // Symbol for `<script>`
  41. htmlComment: 2,
  42. // Symbol for `<!---->`
  43. htmlInstruction: 3,
  44. // Symbol for `<?php?>`
  45. htmlDeclaration: 4,
  46. // Symbol for `<!doctype>`
  47. htmlCdata: 5,
  48. // Symbol for `<![CDATA[]]>`
  49. htmlBasic: 6,
  50. // Symbol for `<div`
  51. htmlComplete: 7,
  52. // Symbol for `<x>`
  53. htmlRawSizeMax: 8,
  54. // Length of `textarea`.
  55. linkResourceDestinationBalanceMax: 3,
  56. // See: <https://spec.commonmark.org/0.29/#link-destination>
  57. linkReferenceSizeMax: 999,
  58. // See: <https://spec.commonmark.org/0.29/#link-label>
  59. listItemValueSizeMax: 10,
  60. // See: <https://spec.commonmark.org/0.29/#ordered-list-marker>
  61. numericBaseDecimal: 10,
  62. numericBaseHexadecimal: 0x10,
  63. tabSize: 4,
  64. // Tabs have a hard-coded size of 4, per CommonMark.
  65. thematicBreakMarkerCountMin: 3,
  66. // At least 3 asterisks, dashes, or underscores are needed.
  67. v8MaxSafeChunkSize: 10000 // V8 (and potentially others) have problems injecting giant arrays into other arrays, hence we operate in chunks.
  68. }
  69. module.exports = constants