index.d.ts 987 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * List of lowercase HTML “block” tag names.
  3. *
  4. * The list, when parsing HTML (flow), results in more relaxed rules (condition
  5. * 6).
  6. * Because they are known blocks, the HTML-like syntax doesn’t have to be
  7. * strictly parsed.
  8. * For tag names not in this list, a more strict algorithm (condition 7) is used
  9. * to detect whether the HTML-like syntax is seen as HTML (flow) or not.
  10. *
  11. * This is copied from:
  12. * <https://spec.commonmark.org/0.30/#html-blocks>.
  13. *
  14. * > 👉 **Note**: `search` was added in `CommonMark@0.31`.
  15. */
  16. export const htmlBlockNames: string[]
  17. /**
  18. * List of lowercase HTML “raw” tag names.
  19. *
  20. * The list, when parsing HTML (flow), results in HTML that can include lines
  21. * without exiting, until a closing tag also in this list is found (condition
  22. * 1).
  23. *
  24. * This module is copied from:
  25. * <https://spec.commonmark.org/0.30/#html-blocks>.
  26. *
  27. * > 👉 **Note**: `textarea` was added in `CommonMark@0.30`.
  28. */
  29. export const htmlRawNames: string[]