egoist / docute

📚 Effortless documentation, done right.
https://docute.egoist.dev
MIT License
3.8k stars 427 forks source link

Special blockquotes #151

Closed egoist closed 6 years ago

egoist commented 6 years ago

A feature inspired by https://docup.egojump.com/#message-blocks

In:

> __WARN__: warning message

<!-- -->

> __ALERT__: alert message

<!-- -->

> __SUCCESS__: success message

<!-- -->

> __INFO__: info message

Out:

<p class="message warning">warning message</p>
<p class="message alert">alert message</p>
<p class="message success">success message</p>
<p class="message info">info message</p>
ulivz commented 6 years ago

This feature LGTM.

BTW, @egoist is it time to determine the primary colors for v4?

My thought is:

  1. Style of this inline blockquotes can be associated with the css helpers
  2. Maybe we can extract some primary colors' name, such as warn / alert / success / info you have mentioned above, extracting the naming of the primary colors will help us in opening the API of future custom topics.

Some references:

ulivz commented 6 years ago

Done at https://github.com/egoist/docute/commit/ed11ad2f07020117845fa6cf02d3ddc9f5d976f3