stable

Clone or download

Read-only

Extract cross references from in rendered markdown

Part of story #18336 add support of markdown How to test: - For the wanted text field. Hack the tracker_changeset_value_text table in the db. Change the body_format from 'text' to 'commonmark' - Go to the view of the concerned text field of the concerned artifact => The cross reference is now displayed - Go to the API Explorer and test a REST route which can return the field. E.g GET kanban/:id/items or GET artifacts/:id/changesets => For the concerned field, the value of the "value" key should contain the "a" tag Change-Id: I42dde914d64c672e8b9243e491043a4f0f0230fb

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_Text.class.php +5 −2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_Changeset_Comment.class.php +4 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Tracker_Artifact_ChangesetValue_TextTest.php +15 −3 Go to diff View file
M src/common/Markdown/CommonMarkInterpreter.php +5 −0 Go to diff View file