mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
- The General/ level is gone: its 109 files moved up into the folders of the same name, and its topic table is the "Shared topics" section of Features.md. - Accessibility is one folder, docs/Features/Accessibility/, with the Admin Panel's accessibility page in it. - Every folder's main page is README.md (110 X/X.md pages renamed with git mv, five merged with an existing README.md, 26 index pages added for folders that had none), so a folder opened on GitHub shows its page. - The 73 "# Moved" forwarding pages are deleted, with the folders that held only them; every link that went to one goes to its final page. - docs/Features/README.md has the website's "Features in WeKan" overview, each feature linking to its page here. 1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose, snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when General/ or a "# Moved" page comes back, a folder has no README.md, or a relative link in the docs or README.md does not resolve. Thanks to xet7 !
3.2 KiB
3.2 KiB
Markdown editor
What it is
WeKan uses a plain-text textarea to edit Markdown in card descriptions and comments, with mention suggestions and rendered previews. It does not use a WYSIWYG editor: no existing editor supports the complete combination of WeKan's Markdown, emoji, security requirements and other editing features.
Read more
- Markdown and WYSIWYG on Wikipedia.
- markdown-it, the renderer, DOMPurify, the sanitizer, and html-to-markdown, which turns pasted HTML into Markdown.
- WeKan pages: Markdown, Emoji, LaTeX, Numbered text, RTL.
How to use it
- Open a card and click its description, or the comment field.
- Write Markdown. Type
@and the start of a name to get member suggestions; pick one with the mouse or Enter. - Save. The text is shown rendered.
Editing and rendering are separate. Markdown rendering, emoji, mentions, HTML-to-Markdown conversion and attachment links remain available. Uploaded files stay in the card's Attachments section and can be referenced from text. There is no environment variable or Snap option to enable a visual editor.
How the numbers are calculated
The editor has no numbers of its own. A mention suggestion starts after @
followed by letters, digits, . or - (/\B@([\w.-]*)$/).
How it works in WeKan
- The
editor,viewerandinlineViewertemplates are client/components/main/editor.jade and editor.js; the description and comment forms include+editor. - Rendering is the
markdownpackage, packages/markdown/src/template-integration.js (markdown-it withhtml,linkifyandbreakson, emoji, math, task lists), and its output is cleaned by packages/markdown/src/secureDOMPurify.js. - Notification email formatting is independent of the text editor. Default notification bodies use the shared HTML-escaping formatter; administrator-defined email body templates retain their existing behavior.
Commits
- Version Control, the activity feed and the email list render titles as Markdown
- Copying a code block no longer opens a new tab
- Link custom URL schemes only when an administrator lists them
- Remove the obsolete Summernote integration
- Visible, selectable comment mention suggestions
- A pasted link to another WeKan card shows that card's title