Hi,
The Modeler feature that shows a tooltip with formatted markdown of a model elements’ `doc` object is very nice. Is it possible to reference/ add hyperlinks in the doc text to actual model elements? Something like
part def MyPart {
doc /* here is my part */
}
part useIt : MyPart {
doc /* this usage is defined by @$::MyModel::MyPart.
}
Then the user can hover over a definition, read the text, if there is a hyperlink, they can click it in the tooltip and be transported to that definition (in vs code), or in built documentation (eg a static site), transported to that page of the model reference docs.
It would probably also be useful to know if Modeler can interpret / navigate markdown anchor links?
A further application - users create a glossary of system terms in the model, and in doc strings, can reference them:
package ModelGlossary {
item def State {
doc
/* A specific condition of a system at a point in time. */
}
}
package MyModel {
part def MyState {
doc /* A [state]($::ModelGlossary::State) of the system. */
}
}
thanks!