Closed refaelsh closed 1 year ago
What do you mean by "cut" ? The source code does not fit horizontally in this slide. You can reduce the padding/margin and/or font size and/or create a shorter snippet.
You could also remove the subtitle and use this title Hyper Text Markup Language (H, T, M and L are bold)
What do you mean by "cut" ?
The last line of the source code block, line 15, is only half visible.
The source code does not fit horizontally in this slide.
I don't understand. Maybe you meant vertically?
You can reduce the padding/margin and/or font size and/or create a shorter snippet.
Well, does this means that the maximum size (in lines) of source code blocks is 14 lines?
You could also remove the subtitle and use this title Hyper Text Markup Language (H, T, M and L are bold)
This did not help.
I don't understand. Maybe you meant vertically?
Yes, sorry from top to bottom 😉
Well, does this means that the maximum size (in lines) of source code blocks is 14 lines?
Not if you are using .stretch
, it should take 100% of the height.
Not if you are using .stretch , it should take 100% of the height.
This is also not good. Look at all the empty screen real estate circled in red:
Are you testing with v5.0.0-rc.1? If so, we can work on improving the default style. As a workaround, you can provide your own stylesheet to tweak how source blocks are displayed.
Are you testing with v5.0.0-rc.1?
No. I am using 3.9.2.
Also, if it had been an HTML written slide with using RevealJS, I could do the following:
<pre><code style="max-height:300px;font-size:0.35em">
...
</code></pre>
E.g., control the max-height
thingy that comes from CSS. Is there a way to control it from AsciiDoctor-RevealJS?
Yes, using custom styles: https://docs.asciidoctor.org/reveal.js-converter/latest/converter/custom-styles/
Yes, using custom styles: https://docs.asciidoctor.org/reveal.js-converter/latest/converter/custom-styles/
Oh! I get it now. Many pieces are falling in place in my head right now. Thank you very much! :-)
Yes, using custom styles: https://docs.asciidoctor.org/reveal.js-converter/latest/converter/custom-styles/
Sorry to bother you again, but I have another question. The link says:
If the :customcss: attribute value is empty then asciidoctor-revealjs.css is the CSS resource that the presentation is linked to.
asciidoctor-revealjs.css
file? I can't find it anywhere on my hard drive.I think the filename is incorrect in the documentation, I think we are referring to https://github.com/asciidoctor/asciidoctor-reveal.js/blob/master/templates/asciidoctor-compatibility.css
I think the filename is incorrect in the documentation, I think we are referring to https://github.com/asciidoctor/asciidoctor-reveal.js/blob/master/templates/asciidoctor-compatibility.css
You can take a look at the code/template:
If the :customcss: attribute value is empty then asciidoctor-revealjs.css is the CSS resource that the presentation is linked to.
The documentation is actually true but the extension does not provide it, the user has to provide it. Not sure if it's a good idea to link to a file that might not exists.
We are also using the following stylesheets regardless of customcss
value:
revealjs_theme
attributePlease open a new issue so we can discuss how to improve the documentation.
Here is a snippet:
Here is how it looks:![Untitled](https://github.com/asciidoctor/asciidoctor-reveal.js/assets/2750775/af5b9253-ccef-47ff-a23b-b11212820fd3)
Why the source code block is cut? Is this a bug or am I missing something?