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.

hard-break-escape.js 613B

12345678910111213141516171819202122232425262728293031
  1. 'use strict'
  2. var markdownLineEnding = require('../character/markdown-line-ending.js')
  3. var hardBreakEscape = {
  4. name: 'hardBreakEscape',
  5. tokenize: tokenizeHardBreakEscape
  6. }
  7. function tokenizeHardBreakEscape(effects, ok, nok) {
  8. return start
  9. function start(code) {
  10. effects.enter('hardBreakEscape')
  11. effects.enter('escapeMarker')
  12. effects.consume(code)
  13. return open
  14. }
  15. function open(code) {
  16. if (markdownLineEnding(code)) {
  17. effects.exit('escapeMarker')
  18. effects.exit('hardBreakEscape')
  19. return ok(code)
  20. }
  21. return nok(code)
  22. }
  23. }
  24. module.exports = hardBreakEscape