I found the cause of the problem.
Certain characters are not handled correctly – from an earlier thread I saw ‘&’ was causing a problem. Well ‘-‘ causes a problem too.
So
Waterless Urinals vs Standard Toilets – How Much Water Will I Save? | How Much Water Will I Save gets ignored
How Much Water is Saved with a Waterless Urinal vs a Standard Toilet? | How much Water Will I Save? Replaces as expected.
Also different xxx – xxx | yyy yyy – gets ignored but xxx-xxx | yyy yyy operates correctly
So it seems the Plugin is infected with WordPress’ handling of non regular characters. Is there a workaround for that without rewriting the headings?
Secondly I had mistaken Level [1.1] in the plugin notes as some sort of reference to the TOC numbering level – it’s not of course you actually have to copy in the words used for the titles the TOC is using to generate the table.
-
This reply was modified 7 years, 7 months ago by
slipperx.
@slipperx
RE: So it seems the Plugin is infected with WordPress’ handling of non regular characters. Is there a workaround for that without rewriting the headings?
No, in fact it is the opposite… I have to attempt to mimic WP’s alterations of the text in order to perform the text matching. I believe this has been resolved in the latest RC.
It may or may not work for you due to it being a complete rewrite in order to support the WP next page post tag. Here is the download link:
https://downloads.wp.xz.cn/plugin/easy-table-of-contents.2.0-rc2.zip
RE: I had mistaken Level [1.1] in the plugin notes as some sort of reference to the TOC numbering level – it’s not of course you actually have to copy in the words used for the titles the TOC is using to generate the table.
Yes, I have noticed that a few users have copy/pasting the example given with a setting and expecting it to work with their post content. Honestly, I do not understand the confusion. From my point of view, it is obvious the feature will only work with your post content and not the example.
What would have eliminated that confusion for you?