growella/table-of-contents

Table of Contents link drops character when a "$" is part of it

Closed this issue · 1 comments

When parsing the headings out of a document, a "$" (dollar sign) character in a headline is resulting in the rest of that word missing in the anchor link.

Example:

<h2>Get started for just $5 today!</h2>

Would render as:

  • Get started for just $today

Screenshot of behavior:

screen shot 2017-02-20 at 10 07 45 am

Props to @dangreenoh for catching this!

It turns out this bug was the result of a callback applied via growella_table_of_contents_link_anchor_text that was specific to the Growella theme, not this plugin.