html.js 246 B

1234567891011121314151617181920
  1. /**
  2. * @typedef {import('mdast').Html} Html
  3. */
  4. html.peek = htmlPeek
  5. /**
  6. * @param {Html} node
  7. * @returns {string}
  8. */
  9. export function html(node) {
  10. return node.value || ''
  11. }
  12. /**
  13. * @returns {string}
  14. */
  15. function htmlPeek() {
  16. return '<'
  17. }