KS-4759: [Wiki] The "Anchor Macro" doesn't work

Fix description:
* Problem: When using anchor syntax refer to an anchor in a page of other page/space/group, wiki generate an error html tag
in a tag: a tag contains anchor property.
* How to fix?: Use javascript to remove the incorrect property in a tag and add more anchor value to the link.