Fossil

View Ticket
Login

View Ticket

2020-04-16
22:42 Fixed ticket [a3572c6a5b]: Backlinks do not work for Markdown plus 4 other changes ... (artifact: 7c7449232e user: drh)
22:35
Improvements to handling of backlinks: (1) Fossil now scans for backlinks in Markdown formatted ticket changes in addition to Fossil-Wiki formatted changes. (2) Wiki is scanned for backlinks, including wiki associated with check-ins and branches. (3) Much of the backlink code is gathered together into a single new "backlink.c" source file. (4) There are improvements to the timeline display of wiki changes. Ticket [a3572c6a5b47cd5a]. ... (check-in: ae1dac83d6 user: drh tags: trunk)
2020-04-15
17:56 Ticket [a3572c6a5b] Backlinks do not work for Markdown status still Open with 5 other changes ... (artifact: 710d320166 user: drh)
16:01 New ticket [a3572c6a5b]. ... (artifact: 517ab95b7c user: drh)

Ticket Hash: a3572c6a5b47cd5a4521bf4bef579aed6ec8efa2
Title: Backlinks do not work for Markdown
Status: Fixed Type: Code_Defect
Severity: Important Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2020-04-16 22:42:18
5.96 years ago
Created: 2020-04-15 16:01:01
5.96 years ago
Version Found In: 2.10
User Comments:
drh added on 2020-04-15 16:01:01:

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.


drh added on 2020-04-15 17:56:11:

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.


drh added on 2020-04-16 22:42:18:

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.