Cannot add inline comments to similar words that exist inside a macro body, which could also be hidden. For example, in a page, a macro body contains the text "This is inside a macro" and the text "I am not inside" lives outside the macro.
Adding an inline comment to the word "inside" results in this error
Steps to reproduce for hidden Page Properties Macro:
Cannot add inline comment to a string or substring which is similar to the content inside hidden macro
- Start editing a page, insert a "Page properties" macro with the option "Hidden" switched ON.
- Type some text inside the macro.
- Type the same text outside the macro.
- Save the page.
From now on you won't be able to make inline comment for any substring, which matches the text inside the macro.
Cannot add inline comment to a string or substring which is similar to anchor link
- Start editing a page, insert a TOC macro
- Adding heading 1 with some text
- Save a page
From now on we cannot add an inline comment into any string or substring of heading text (in step 2). You can use another macro which can generate an anchor link other than TOC macro.
Inline comments will be placed successfully.
Currently, there is no known workaround for this behaviour. A workaround will be added here when available
Seems like matchIndex and numMatches values are incorrect due to the texts inside the macro body being matched.