File: allow_wiki_syntax_in_commit_messages.mdwn

package info (click to toggle)
ikiwiki 3.20190228-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,904 kB
  • sloc: perl: 31,100; python: 428; sh: 185; makefile: 120
file content (21 lines) | stat: -rw-r--r-- 1,038 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Commit messages should allow wiki syntax, and RecentChanges should format them
accordingly.

--[[JoshTriplett]]

That's a neat idea! It would probably have to be only the simpler bits,
without preprocessor directives -- wouldn't want a commit message inlining
a whole page into RecentChanges. Of course, it could only use _one_ of the
available markups, ie the default markdown. --[[Joey]]

To go along with this, the preview should show the formatted commit message.
--[[JoshTriplett]]

This is really easy to do now, but it would have to be limited to applying
markdown formatting (or whatever formatter is default I suppose) to the
content, and *not* to expanding any WikiLinks or preprocessor directives.
Especially with the new static RecentChanges, expanding even wikilinks
would be pretty tricky to do. Applying markdown formatting seems like a
reasonable thing; it would make commit messages that have the form of a
bulletted list be marked up nicely, and would also handle _emphasised_
words etc, and even http links. --[[Joey]]