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.

emphasis.js 720B

123456789101112131415161718192021
  1. module.exports = emphasis
  2. emphasis.peek = emphasisPeek
  3. var checkEmphasis = require('../util/check-emphasis')
  4. var phrasing = require('../util/container-phrasing')
  5. // To do: there are cases where emphasis cannot “form” depending on the
  6. // previous or next character of sequences.
  7. // There’s no way around that though, except for injecting zero-width stuff.
  8. // Do we need to safeguard against that?
  9. function emphasis(node, _, context) {
  10. var marker = checkEmphasis(context)
  11. var exit = context.enter('emphasis')
  12. var value = phrasing(node, context, {before: marker, after: marker})
  13. exit()
  14. return marker + value + marker
  15. }
  16. function emphasisPeek(node, _, context) {
  17. return context.options.emphasis || '*'
  18. }