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.

label-start-link.js 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. 'use strict'
  2. var labelEnd = require('./label-end.js')
  3. var assert = require('assert')
  4. var codes = require('../character/codes.js')
  5. var types = require('../constant/types.js')
  6. function _interopDefaultLegacy(e) {
  7. return e && typeof e === 'object' && 'default' in e ? e : {default: e}
  8. }
  9. var assert__default = /*#__PURE__*/ _interopDefaultLegacy(assert)
  10. var labelStartLink = {
  11. name: 'labelStartLink',
  12. tokenize: tokenizeLabelStartLink,
  13. resolveAll: labelEnd.resolveAll
  14. }
  15. function tokenizeLabelStartLink(effects, ok, nok) {
  16. var self = this
  17. return start
  18. function start(code) {
  19. assert__default['default'](code === codes.leftSquareBracket, 'expected `[`')
  20. effects.enter(types.labelLink)
  21. effects.enter(types.labelMarker)
  22. effects.consume(code)
  23. effects.exit(types.labelMarker)
  24. effects.exit(types.labelLink)
  25. return after
  26. }
  27. function after(code) {
  28. /* c8 ignore next */
  29. return code === codes.caret &&
  30. /* c8 ignore next */
  31. '_hiddenFootnoteSupport' in self.parser.constructs
  32. ? /* c8 ignore next */
  33. nok(code)
  34. : ok(code)
  35. }
  36. }
  37. module.exports = labelStartLink