You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.
A note block is a little box with some text. It may be a reminder, a disclaimer, a warning, or whatever.
Many MediaWiki wikis have them implemented with templates and hacks. Well, it's considered idiomatic there.
Yandex Flavored Markdown, yet another dialect of Markdown (which has 4 levels of headings too, by the way), introduces such note blocks. Yandex's idea is similar to mine. That's great.
So, the syntax I purpose is as follows:
note <type> {
<body>
}
Where:
<type> is an optional value. Possible values:
important for text that is so important everyone must read it.
tip for slightly related notes that may help readers.
warning for warnings. A good choice for marking sections deprecated.
Default: tip.
<body> is a Mycomarkup-formatted text.
Each type has its own colors and icons. Every aspect of it is granularly configurable with CSS.
The text was updated successfully, but these errors were encountered:
Do we allow all of Mycomarkup in body? The same question applies to table cells and image captions, by the way.
Maybe we should limit the subset of Mycomarkup in body.
Should the type set be like that? Maybe it should be larger?
Can custom types be introduced? It's all configured with CSS, why not?
I don't like the idea of custom types because having it ties Mycomarkup with HTML and CSS too much. Mycomarkup will have targets other than HTML, such as FB2 or PDF, for example.
GitHub decided to get it too. They have a discussion going on. One can scroll it through. These are all examples of syntaces Mycomarkup is not going to have. I like GitHub's design of note blocks though, those colored icons are cute
I had this idea for a long time.
A note block is a little box with some text. It may be a reminder, a disclaimer, a warning, or whatever.
Many MediaWiki wikis have them implemented with templates and hacks. Well, it's considered idiomatic there.
Yandex Flavored Markdown, yet another dialect of Markdown (which has 4 levels of headings too, by the way), introduces such note blocks. Yandex's idea is similar to mine. That's great.
So, the syntax I purpose is as follows:
Where:
<type>
is an optional value. Possible values:important
for text that is so important everyone must read it.tip
for slightly related notes that may help readers.warning
for warnings. A good choice for marking sections deprecated.Default:
tip
.<body>
is a Mycomarkup-formatted text.Each type has its own colors and icons. Every aspect of it is granularly configurable with CSS.
The text was updated successfully, but these errors were encountered: