docute icon indicating copy to clipboard operation
docute copied to clipboard

Support shorthand for css helpers

Open ulivz opened this issue 7 years ago • 4 comments

Tip

<p class="tip">tip</p>

Can be simplified as:

?> tip

Warning

<p class="warning">warning</p>

Can be simplified as:

!> warning

Only need to do some enhancement for the marked renderer, I'm glad to contribute for it.

But I don't know what the syntax of .danger and .no-bg should be, what do you think?

ulivz avatar Mar 11 '18 13:03 ulivz

I'm not accepting new feature requests to current version (v3) of docute since I want to put all efforts to developing docute v4.

Bug fixes are still welcome though.

egoist avatar Mar 11 '18 13:03 egoist

Cool, just moving it to the v4 graph, BTW, can you create a v4 label to indicate it? I will work for it when you start v4. thanks.

ulivz avatar Mar 11 '18 13:03 ulivz

v4 is available at https://github.com/egoist/docute/tree/dev (far from being completed)

btw I think some syntax like this might be better:

::: warning
Some __warning__...
:::

Not sure about which symbol fits better though.

Docute v4 is using markdown-it too, so it should be easier to make plugins.

egoist avatar Mar 24 '18 12:03 egoist

@egoist This syntax looks awesome. 👏

ulivz avatar Mar 31 '18 09:03 ulivz