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: README.md
+9
Original file line number
Diff line number
Diff line change
@@ -145,13 +145,22 @@ If you want the default to be to flatten (avoiding setting it each
145
145
snippet declaration), you can set that using the config method: `Oreilly::Snippets.config( flatten: true )`
146
146
147
147
At the moment, flattening does not work perfectly for Java files. You can ignore java with `Oreilly::Snippets.config( flatten: true, skip_flattening: { java: true } )`
148
+
148
149
#### Incompatibilities with Atlas from O'Reilly
149
150
150
151
NB: This format of snippets is not currently compatible with Atlas
151
152
from O'Reilly. However, you can always process the snippet and write
152
153
out a normal Asciidoc file, a file which will be compatible with
153
154
Atlas. See below for an example using Guard.
154
155
156
+
### Normalizing Callouts
157
+
158
+
If you use callouts, you might run into a situation where you write 10
159
+
of them inside a snippet, and then you break that snippet into
160
+
two. Your second snippet will have callouts 6-10. If you specify
161
+
`normcallouts="true"` in your snippet, this module will rewrite those to
162
+
start from 1.
163
+
155
164
### Using with Guard and live-reload
156
165
157
166
One nice workflow is to edit files in your editor, then have guard
0 commit comments