Text::Markdown::Discount
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.

27 lines
742 B

  1. --- discount/html5.c.orig 2013-08-05 12:24:40.000000000 -0700
  2. +++ discount/html5.c 2013-08-05 12:25:02.000000000 -0700
  3. @@ -3,11 +3,11 @@
  4. #include "tags.h"
  5. void
  6. -mkd_with_html5_tags()
  7. +mkd_with_html5_tags(int force)
  8. {
  9. static int populated = 0;
  10. - if ( populated ) return;
  11. + if ( populated && !force ) return;
  12. populated = 1;
  13. mkd_define_tag("ASIDE", 0);
  14. --- discount/tags.c.orig 2013-08-05 12:24:40.000000000 -0700
  15. +++ discount/tags.c 2013-08-05 12:25:02.000000000 -0700
  16. @@ -26,6 +26,8 @@
  17. * either the standard or extra tag tables.
  18. */
  19. if ( !(p = mkd_search_tags(id, strlen(id))) ) {
  20. + if ( S(extratags) == 0 )
  21. + CREATE(extratags);
  22. p = &EXPAND(extratags);
  23. p->id = id;
  24. p->size = strlen(id);