In the [MoinMoin wiki][], there is this neat little hack called [Admonitions][] that basically create a `
` block with a specific style out of a certain section of the text. I couldn't find a way to do this easily in Ikiwiki. On the one hand, there is no easy way to create div blocks with arbitrary styles (which is basically what MoinMoin admonitions are). On the other hand, there are no neat little logos in stylesheets like there are in Moinmoin either. It would be great to see this implemented in Ikiwiki. Now, I know I can make a `
` myself, but I am not sure we should encourage users to inject arbitrary HTML in ikiwiki pages. And even then, we should add adminition CSS classes to make that easier to use. Ideally, Ikiwiki would support Pandoc or Github-style fenced blocks and could abuse those to allow arbitrary styles (and markup!) to kick in. The [[ikiwiki/directive/format]] directive could also be used, I guess, but I dislike how it requires all those brackets and quotes and bangs and all... -- [[anarcat]] [MoinMoin wiki]: https://moinmo.in/ [Admonitions]: https://moinmo.in/HelpOnAdmonitions > ikiwiki's general design is that it supports exactly three forms > of markup: > > * whatever the `htmlize` plugin does > * as a special ikiwiki-specific extension, \[[wikilinks]] > * as another special ikiwiki-specific extension, \[[!directives]] > > All markup interpretation beyond wikilinks and directives is > the `htmlize` plugin's responsibility. The `mdwn` plugin > interprets Markdown, the `rst` plugin interprets > reStructuredText and so on. > > It sounds as though you're asking for a `htmlize` plugin which > interprets an extended dialect of Markdown: > > * standard Markdown (inasmuch as such a thing exists) as usual > * mapping certain syntax (what?) to "admonitions" > > ikiwiki deliberately doesn't implement Markdown parsing, it just > calls out to one of several Perl implementations of Markdown. > > Alternatively, you could have a small plugin that translates > > [[!warning "Do what I say, not as I do."]] > > into an appropriate `
`. That's the "lightest" form of > markup that is built into ikiwiki itself. > > Alternatively^2, some different hook (I think [[plugins/typography]] > might use the right one?) could interpret an ad-hoc syntax and > turn it into a `
` either before or after `htmlize` processing. > However, that would be adding an extra layer of syntax for your > users to keep track of. --[[smcv]]