Fossil SCM
Backlinks do not work for Markdown
a3572c6a5b47cd5…
· opened 5 years, 11 months ago
- Type
- Code_Defect
- Priority
- Immediate
- Severity
- Important
- Resolution
- Fixed
- Subsystem
- —
- Created
- April 15, 2020 4:01 p.m.
If a Fossil-Wiki formatted wiki page or ticket references a check-in, then the /info page for the check-in contains a link back to the wiki page or ticket. This is implemented using the "backlink" table of the repository.
However, the backlink mechanism does not work for Markdown-formatted tickets or wiki.
Comments (3)
If a Fossil-Wiki formatted wiki page or ticket references a check-in, then the /info page for the check-in contains a link back to the wiki page or ticket. This is implemented using the "backlink" table of the repository.
However, the backlink mechanism does not work for Markdown-formatted tickets or wiki.
Furthermore, it appears that backlink always assumes that check-in comments are text/x-fossil-wiki, even if the N card for the check-in provides a different mimetype.
While fixing this, it seems like it might be useful to add a check-in comment verification step to the "fossil commit" command. If the check-in comment appears to use a markup style different from whatever the default mark-up style is, or different from the that specified by the --mimetype option, then prompt the user to confirm that the comment is correct and give the user a chance to continue editing the commit if it is not.
Changes implemented in the backlink-updates branch and merged to trunk by check-in ae1dac83d6bc4a3e.
You must run "fossil rebuild" to take full advantage of the enhancements.
Everything will still work without rebuild, but rebuild will make things work
better.