html_blocks.py 986 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. """List of valid html blocks names, according to commonmark spec
  2. http://jgm.github.io/CommonMark/spec.html#html-blocks
  3. """
  4. # see https://spec.commonmark.org/0.31.2/#html-blocks
  5. block_names = [
  6. "address",
  7. "article",
  8. "aside",
  9. "base",
  10. "basefont",
  11. "blockquote",
  12. "body",
  13. "caption",
  14. "center",
  15. "col",
  16. "colgroup",
  17. "dd",
  18. "details",
  19. "dialog",
  20. "dir",
  21. "div",
  22. "dl",
  23. "dt",
  24. "fieldset",
  25. "figcaption",
  26. "figure",
  27. "footer",
  28. "form",
  29. "frame",
  30. "frameset",
  31. "h1",
  32. "h2",
  33. "h3",
  34. "h4",
  35. "h5",
  36. "h6",
  37. "head",
  38. "header",
  39. "hr",
  40. "html",
  41. "iframe",
  42. "legend",
  43. "li",
  44. "link",
  45. "main",
  46. "menu",
  47. "menuitem",
  48. "nav",
  49. "noframes",
  50. "ol",
  51. "optgroup",
  52. "option",
  53. "p",
  54. "param",
  55. "search",
  56. "section",
  57. "summary",
  58. "table",
  59. "tbody",
  60. "td",
  61. "tfoot",
  62. "th",
  63. "thead",
  64. "title",
  65. "tr",
  66. "track",
  67. "ul",
  68. ]