You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@
2
2
3
3
Record of bug fixes, enhancements, and changes.
4
4
5
+
## [1.0.0] – 22-06-16
6
+
7
+
### Added
8
+
- Added roles to the source block and the callout list so that CSS folk can pick them out to make style changes (For example, adjusting the gap between callout items in the source code block.)
## Use with the [IntelliJ Asciidoc Plugin](https://plugins.jetbrains.com/plugin/7391-asciidoc)
93
+
94
+
If you're not using the excellent Asciidoc plugin then you're really missing out.
95
+
One if it's lesser known features is that it supports Asciidoc extensions written in Ruby:
96
+
97
+
1. Create a new folder structure in the root of your IntelliJ project called `.asciidoctor/lib`.
98
+
2. Copy the file `asciidoctor-external-calllout.rb` from this distribution to `.asciidoctor/lib`.
99
+
100
+
Now, when you preview an Asciidoc file with the plugin enabled, external callouts will now show up in the preview.
101
+
102
+
## Formatting
103
+
104
+
By default, the callout extension will put a single space between callouts that occur on the same line. If you want to adjust this, then you need to create a style that puts a horizontal margin between the callouts:
105
+
106
+
```css
107
+
div.external-callout-blocki.conum {
108
+
margin-left: 10px;
109
+
margin-right: 10px;
110
+
}
111
+
```
112
+
The callout attaches a class called `external-callout-block` to each source listing it processes. You can use this to differentiate between standard callouts, and callouts written by the extension.
113
+
114
+
The extension also adds a class called `external-callout-list` to the list of definitions at the bottom of the source block. (There's probably no need to adjust the styling for this.)
115
+
116
+
Then to convert a document with a stylesheet, use something like this:
0 commit comments