Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font icons for source code callouts #54

Closed
antoyo opened this issue Nov 6, 2015 · 6 comments
Closed

Font icons for source code callouts #54

antoyo opened this issue Nov 6, 2015 · 6 comments

Comments

@antoyo
Copy link

antoyo commented Nov 6, 2015

Hello.
The font icons for source code callouts (<1>, for instance) does not exist in the reveal.js backend.
Could you add them, please?
Thanks.

@obilodeau
Copy link
Member

Can you provide a minimal example that would reproduce the problem? Thanks!

@antoyo
Copy link
Author

antoyo commented Aug 26, 2016

Yes.
Here is the code:

= Presentation
Me
:backend: revealjs
:icons: font
:source-highlighter: highlightjs

== Callout

[source, rust]
----
fn main() {
    println!("Hello World!"); // <1>
}
----
<1> `println!` is a macro.

The result:
img-2016-08-26-080038
And the expected result is to have icons similar to the HTML5 backend:
img-2016-08-26-080048

@obilodeau
Copy link
Member

With reveal.js 3.3.0 I think we are closer (uses highlight.js 9 which I think supports callouts):

adoc-callout

However, there might be something needed on our end in order to avoid escaping the HTML (or something like that).

Also tested with coderay, pygments and rouge. Nothing works.

@mojavelinux
Copy link
Member

It's important to note that the appearance of the callout in built-in HTML backend is provided exclusively by CSS. The screenshot @antoyo posted is exactly what you'd expect if CSS is not helping. The built-in stylesheet in Asciidoctor transforms the <i> element into an enclosed number using CSS. There's no special thing that the converter does.

@obilodeau
Copy link
Member

Good to know. I'll add this to the list of CSS that we need to pull in from asciidoctor.

@obilodeau
Copy link
Member

Fixed by #224. See also #168. Will be part of our next release.

@ggrossetie ggrossetie removed this from the 4.2.0 milestone Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants