The FAQ shortcode is great feature, but seems to produce invalid IDs when encountering certain characters. Most notably '.' and '/' characters. This in turn stops the accordion from Bootstrap working properly.
Example markdown:
{{< faq "My computer sometimes / always stops working" >}}
Try turning it off and on again.
{{</ faq >}}
Replacing urlize with anchorize has fixed it on my local copy. I'm happy to do a pull request with this change in? (Will change how the IDs were being generated, though.)
The FAQ shortcode is great feature, but seems to produce invalid IDs when encountering certain characters. Most notably '.' and '/' characters. This in turn stops the accordion from Bootstrap working properly.
Example markdown:
Which in turn produces:
I think the problematic lines are as follows: https://github.com/themefisher/dot/blob/6f6257751b70c8493d5b815208d38c7802323831/layouts/shortcodes/faq.html#L5 https://github.com/themefisher/dot/blob/6f6257751b70c8493d5b815208d38c7802323831/layouts/shortcodes/faq.html#L9
Replacing
urlize
withanchorize
has fixed it on my local copy. I'm happy to do a pull request with this change in? (Will change how the IDs were being generated, though.)