diff --git a/README.md b/README.md index 79d06001a..2124a0336 100644 --- a/README.md +++ b/README.md @@ -274,3 +274,18 @@ Create a update tag based on a tag_name. The tag_name must be defined in `data/updates.js`. Example: `[[changed,tag_name]]` + +### Other Markdown Extensions + +#### TODO Container + +***Syntax:*** + +``` +::: todo +TODO text contents +::: +``` + +Outputs a formatted TODO container, using the (optional) TODO text contents +as the body. diff --git a/docs/core/admin/limits.md b/docs/core/admin/limits.md index ecfbc4167..3022b48ad 100644 --- a/docs/core/admin/limits.md +++ b/docs/core/admin/limits.md @@ -8,13 +8,11 @@ title: Limits Dovecot contains various built-in resource limits designed to prevent denial of service situations. This page lists those limits. +::: todo +This list is currently incomplete. +::: + ## Message Headers There is a `10 MB` limit for a single message header block, and a `50 MB` limit for all header blocks in a message. - -## TODO - -::: danger TODO -List other limits here -::: diff --git a/docs/core/config/imap.md b/docs/core/config/imap.md index 247706978..37f06025d 100644 --- a/docs/core/config/imap.md +++ b/docs/core/config/imap.md @@ -85,7 +85,8 @@ mail_attribute_dict = proxy::metadata ### SPECIAL-USE -TODO +::: todo +::: ### PREVIEW diff --git a/docs/developers/debugging.md b/docs/developers/debugging.md index 0a3f14069..6c795aaf5 100644 --- a/docs/developers/debugging.md +++ b/docs/developers/debugging.md @@ -151,8 +151,8 @@ dest=core.tar.gz ## Debugging Core Dumps in Other Systems -::: warning TODO -Move to Pro +::: todo +Move to Dovecot Pro documentation. ::: If you have a tar.gz generated from dovecot-sysreport, you can debug it diff --git a/lib/markdown.js b/lib/markdown.js index 2784f79e1..66c276d76 100644 --- a/lib/markdown.js +++ b/lib/markdown.js @@ -1,8 +1,18 @@ +import containerPlugin from 'markdown-it-container' import deflistPlugin from 'markdown-it-deflist' import { createMarkdownRenderer } from 'vitepress' import { loadData, loadDovecotLinks, resolveURL } from './utility.js' export async function dovecotMdExtend(md) { + md.use(containerPlugin, 'todo', { + render: function(tokens, idx) { + if (tokens[idx].nesting === 1) { + return '
⚠️ TODO
' + } else { + return '