templates/slim/literal.html.slim in asciidoctor-bespoke-1.0.0.alpha.1 vs templates/slim/literal.html.slim in asciidoctor-bespoke-1.0.0.alpha.2
- old
+ new
@@ -1,10 +1,11 @@
// NOTE if style is not set, then it's a literal paragraph (not a literal block)
- _has_title = title?
+- _role = role
- content_for :pre
- pre.screen id=(id unless _has_title) class=role : samp =content
+ pre.screen id=(id unless _has_title) class=_role : samp =content
- if _has_title
- figure.listing id=id
+ figure.listing id=id class=_role
figcaption=title
- yield_content :pre
- else
- yield_content :pre