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-image.js 940B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. 'use strict'
  2. var labelEnd = require('./label-end.js')
  3. var labelStartImage = {
  4. name: 'labelStartImage',
  5. tokenize: tokenizeLabelStartImage,
  6. resolveAll: labelEnd.resolveAll
  7. }
  8. function tokenizeLabelStartImage(effects, ok, nok) {
  9. var self = this
  10. return start
  11. function start(code) {
  12. effects.enter('labelImage')
  13. effects.enter('labelImageMarker')
  14. effects.consume(code)
  15. effects.exit('labelImageMarker')
  16. return open
  17. }
  18. function open(code) {
  19. if (code === 91) {
  20. effects.enter('labelMarker')
  21. effects.consume(code)
  22. effects.exit('labelMarker')
  23. effects.exit('labelImage')
  24. return after
  25. }
  26. return nok(code)
  27. }
  28. function after(code) {
  29. /* c8 ignore next */
  30. return code === 94 &&
  31. /* c8 ignore next */
  32. '_hiddenFootnoteSupport' in self.parser.constructs
  33. ? /* c8 ignore next */
  34. nok(code)
  35. : ok(code)
  36. }
  37. }
  38. module.exports = labelStartImage