Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| software:dokuwiki [2025/12/22 22:31] – diamond | software:dokuwiki [2026/01/07 08:33] (current) – add note on wrap plugin diamond | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| - Some inline Dokuwiki syntax are still supported. For example, the "Add image" button in the editor still works, even though it inserts Dokuwiki markup. | - Some inline Dokuwiki syntax are still supported. For example, the "Add image" button in the editor still works, even though it inserts Dokuwiki markup. | ||
| - Some Commonmark syntax are parsed incorrectly by the plugin. For example, list items with multiple text paragraphs are not supported. | - Some Commonmark syntax are parsed incorrectly by the plugin. For example, list items with multiple text paragraphs are not supported. | ||
| - | - You may add custom Dokuwiki markup | + | - You may add custom Dokuwiki markup by opening a code block with a `dokuwiki` language. The [main page](/) utilizes this; just look at its source code. |
| + | - The main editor is [TinyMDE](# | ||
| ### Admonitions | ### Admonitions | ||
| Line 23: | Line 24: | ||
| Here's the code for it: | Here's the code for it: | ||
| - | ```` | + | ``` |
| > **Note:** Fire Warning | > **Note:** Fire Warning | ||
| > | > | ||
| > This device may catch fire. Use with caution. | > This device may catch fire. Use with caution. | ||
| - | ```` | + | ``` |
| For this to work, the first text part of the blockquote must be a bold string (`**bold**`). The CSS will automatically style it like the above. | For this to work, the first text part of the blockquote must be a bold string (`**bold**`). The CSS will automatically style it like the above. | ||
| + | |||
| + | ### TinyMDE | ||
| + | |||
| + | We use [TinyMDE](https:// | ||
| + | |||
| + | If this is breaking for some reason, you may revert to the previous editor by adding `tinymde=no` to the query URL, e.g. `https:// | ||
| + | |||
| + | ### Images | ||
| + | |||
| + | TinyMDE' | ||
| + | |||
| + | For reference: | ||
| + | |||
| + | - To set the width of the image to 100, add `?100` to the end of the image URL. | ||
| + | - To set the height of the image to 100, add `?0x100` to the end of the image URL. | ||
| + | - To center the image, wrap it in a `<div centeralign> | ||
| + | |||
| + | ### Format using Prettier | ||
| + | |||
| + | The sparkly button on the editor toolbar will format the entire page's source using Prettier as a Markdown file. **DO NOT run this if the page is written entirely in Dokuwiki markup.** | ||
| + | |||
| + | It is recommended that you run this tool whenever you paste any Markdown snippet from outside. | ||
| + | |||
| + | ### Aligning Content | ||
| + | |||
| + | We run the [Wrap plugin](https:// | ||
| + | |||
| + | ``` | ||
| + | <div centeralign> | ||
| + | ![](path/ | ||
| + | </ | ||
| + | ``` | ||
| + | |||
| + | Refer to their documentation for more information. | ||
| ## Namespacing | ## Namespacing | ||
| Line 78: | Line 113: | ||
| These patchsets are maintained by a set of NixOS configurations. See [NixOS Boxes](/ | These patchsets are maintained by a set of NixOS configurations. See [NixOS Boxes](/ | ||
| + | |||