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.

strong.js 718B

123456789101112131415161718192021
  1. module.exports = strong
  2. strong.peek = strongPeek
  3. var checkStrong = require('../util/check-strong')
  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 strong(node, _, context) {
  10. var marker = checkStrong(context)
  11. var exit = context.enter('strong')
  12. var value = phrasing(node, context, {before: marker, after: marker})
  13. exit()
  14. return marker + marker + value + marker + marker
  15. }
  16. function strongPeek(node, _, context) {
  17. return context.options.strong || '*'
  18. }