Internal LINK per element for MARKDOWN hyperlink references.
The markdown support per element in the "Model Explorer" a very useful feature, where we can keep analytical information about our elements.
However I noticed that I can't use the markdown link notation in order to provide direct links between the markdown text and elements that I have in the "Model Explorer".
I think it would be very useful to be able to add such multiple links in starUML's markdown support. When someone clicks on the markdown link he should be transferred either to the selected Element through "Model Explorer" either to the the proper link of the element when using an exported code i.e. "Export->HTML Docs...".
Take as example the following project, where the "Model-B" UMLModel it has a description where I want to have 2 links. One to UMLModel "Model-A" and another one to UMLClassDiagram "Main". It would make perfect sense to use the "id" of each element as target to markdown link, and then when someone clicks on the markdown link through starUML, to actually select the corresponding element with that "id" in "Model Explorer". On the other hand when someone clicks on the markdown link in an exported version of the project i.e. "Export->HTML Docs...", he should be linked to the corresponding element via the proper URL link (e.g. when exporting to translate properly the unique "id" to a unique URL path; the URL path for the element with that "id").
Such a feature would help to use MARKDOWN to describe and group textually different elements together, with direct selection/access from the markdown section (e.g. from the overview description of a UMLModel).
However this would require an extra right-click option at the "Model Explorer" called i.e. "copy Internal Link". Thus, in the provided example below, when someone selects an element like the UMLModel "model-A" and then right-click, "copy Internal Link" the value "AAAAAAFF+qBWK6M3Z8Y=" should be copied to clipboard. With this value a markdown url can be created like: "[Model-A](AAAAAAFF+qBWK6M3Z8Y=)", which corresponds to a link-phrase "Model-A" which when pressed leads to the "model-A" UMLModel element (either from inside the starUML software, either by updating the URL i.e. from any other exported version like "HTML Docs...")
Example project:
{
"type": "Project",
"id": "AAAAAAFF+h6SjaM2Hec=",
"name": "markdown link test",
"ownedElements": [
{
"type": "UMLModel",
"id": "AAAAAAFF+qBWK6M3Z8Y=",
"parent": {
"$ref": "AAAAAAFF+h6SjaM2Hec="
},
"name": "model-A",
"ownedElements": [
{
"type": "UMLClassDiagram",
"id": "AAAAAAFF+qBtyKM79qY=",
"parent": {
"$ref": "AAAAAAFF+qBWK6M3Z8Y="
},
"name": "Main",
"defaultDiagram": true
}
]
},
{
"type": "UMLModel",
"id": "AAAAAAFuE0OEPewmZ74=",
"_parent": {
"$ref": "AAAAAAFF+h6SjaM2Hec="
},
"name": "Model-B",
"documentation": "This is Model-B and its a bit different than [Model-A](AAAAAAFF+qBWK6M3Z8Y=) which have the UMLClassDiagram [Main](AAAAAAFF+qBtyKM79qY=)."
}
]
}
