Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Transclusion or including sub-documents for reuse

Дата публикации: 26-09-2026 09:27:19

FYI: I released includes functionality that is quite powerful syntax and could be ported to CommonMark IMO.
{{ path }}
{{ path #section }}
{{ path @key:value }}
{{ path #section @key:value }}
{{ path @shift:N }}
Especially @shift:auto is useful to shift the headers down to the next level automatically on include.
It is online with demo apps (e.g. this) to check out and a nice side-effect: You can also in websites include (DB driven) snippets inside documents, so it is like mini-templating the safe way (including the same markup only). I didn’t find any measurable issue here.
Do you see any concerns? Or could this be ported in some capacity?
For MD specifically once has to disable HTML probably when using it in online context - or sanitize extra, since user input should not be trusted.
Locally, it should be fine to allow any and all syntax.

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Using link reference definitions as invisible structural markers — sound, or a bad idea?01027-09-2026
2Making Markdown a first-class citizen of the Web07.314-09-2026
3Three things I decided not to parse, building a live-preview editor012.6927-08-2026
4A list of common mistakes that people make while writing Markdown010.420-08-2026
5MD Studio - a personal HTML-to-Markdown project014.9605-09-2026
6A (somewhat) formally verified implementation of Markdown012.3208-08-2026
7Interoperable markers for automatic heading numbers07.7227-07-2026
8Interesting trend of executable markdown readme projects (Syntax comparison)011.7228-08-2026
9Should fenced code blocks always remain visible as source?015.2603-10-2026
10Markdific - A better tool to open, read, edit and export Markdown files07.2305-10-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 11.72. Источник: talk.commonmark.org.