GitbookIO / gitbook

The open source frontend for GitBook doc sites
https://www.gitbook.com
GNU General Public License v3.0
27.13k stars 3.87k forks source link

Support for AsciiDoc admonition paragraphs #1430

Closed DanielSWolf closed 7 months ago

DanielSWolf commented 8 years ago

Admonitions are a great AsciiDoc feature that allows you to highlight some text in a meaningful way. They are meant to look something like this:

image

Instead, GitBook renders them like this, which is rather useless:

image

It shouldn't be hard to get these admonitions to look better:

erixtekila commented 8 years ago

That may be of interest https://github.com/erixtekila/gitbook-plugin-richquotes

nagim commented 8 years ago

Or this: https://plugins.gitbook.com/plugin/callouts

DanielSWolf commented 8 years ago

Thanks, that looks interesting. Still, given that admonition paragraphs are part of the AsciiDoc standard, I'd have hoped that they work out of the box.

msavy commented 7 years ago

@DanielSWolf As it looks like the fixes for this issue aren't going to be merged any time soon, I've created the asciidoc-admonition-icons GitBook plugin to restore the Asciidoc(tor) admonition paragraph icons.

Its default styling is almost identical to the standard Asciidoctor theme, with some minor colour changes to better match the GitBook style.

You can, of course, override the glyphs and styling in configuration. Check out the docs for more on that.