Some link text is not correctly rendered as links to the SAP UI5 documentation.
Examples:
Documentation links: topic:5ee619fc1370463ea674ee04b65ed83b should be rendered as https://sapui5.hana.ondemand.com/<version>/topic/5ee619fc1370463ea674ee04b65ed83b
Method names: #attachValidateFieldGroup should be rendered as https://sapui5.hana.ondemand.com/<version>/api/sap.ui.core.Control#methods/attachValidateFieldGroup
The logic for this should be to first check if the text is the name of a method, property, aggregation or event in the current context object (or its parents through inheritance) and create the link to the correct section accordingly. Note that only methods have direct links, the rest of the types can be linked to the corresponding section.
Since we will need the context object for this check, we will have to send it to the documentation function.
Some link text is not correctly rendered as links to the SAP UI5 documentation. Examples:
topic:5ee619fc1370463ea674ee04b65ed83b
should be rendered ashttps://sapui5.hana.ondemand.com/<version>/topic/5ee619fc1370463ea674ee04b65ed83b
#attachValidateFieldGroup
should be rendered ashttps://sapui5.hana.ondemand.com/<version>/api/sap.ui.core.Control#methods/attachValidateFieldGroup