From af501e9e14815297a2e9bc43dfb520eb24937b4a Mon Sep 17 00:00:00 2001 From: smcv Date: Thu, 1 Jun 2017 10:03:51 -0400 Subject: [PATCH] current headinganchors does not damage headings' attributes, although it does not act on those headings --- doc/plugins/contrib/i18nheadinganchors/discussion.mdwn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/plugins/contrib/i18nheadinganchors/discussion.mdwn b/doc/plugins/contrib/i18nheadinganchors/discussion.mdwn index ec6568010..a172e5ac4 100644 --- a/doc/plugins/contrib/i18nheadinganchors/discussion.mdwn +++ b/doc/plugins/contrib/i18nheadinganchors/discussion.mdwn @@ -84,6 +84,10 @@ or similar. > It's not a bug, it's a limitation. :) But sure, it's a thing. It's an issue in > headinganchors as well of course. -- [[anarcat]] +>> No, current/historical headinganchors has a different bug: it ignores headings +>> that have any attributes, and does not generate anchors for them. That gives it +>> degraded functionality, but no information loss. I think that's less bad. --s + I think we should try to use an existing ID before generating our own, with the generation step as a fallback, just like Pandoc does. If a htmlize layer like Text::MultiMarkdown or Pandoc is generating worse IDs than this plugin, the