Skip to content

Commit 53f9054

Browse files
committed
Added CHANGELOG.md. Fixed line where I was picking up a formatted list item rather than the raw format. (Always work with the raw format!)
1 parent 75379ca commit 53f9054

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Changelog
2+
3+
Record of bug fixes, enhancements, and changes.
4+
5+
## [0.0.6-beta6] – 2022-06-11
6+
7+
### Changed
8+
9+
- Ordered lists were only processes if they occurred directly beneath a source listing block. This turns out to be quite restrictive, and doesn't follow Asciidoc's stance on processing standard callouts, which allows for intermediate blocks to separate the source list from the attached callout list.\
10+
The processor will now allow intermediate blocks to separate the source listing from the ordered list containing callouts.
11+
- Fixed a few spelling mistakes and a code line where I was picking up a formatted item, rather than a raw item.
12+

asciidoctor-external-callout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = function (registry) {
4646

4747
return list.getBlocks().every((x) => {
4848

49-
let item_under_test = x.getText()
49+
let item_under_test = x.text
5050
let location_token_index = item_under_test.search(LOCATION_TOKEN_RX)
5151

5252
// if we don't find the start of the list of location tokens, or the token is the first item
@@ -151,7 +151,7 @@ module.exports = function (registry) {
151151
if (block_parent.getBlocks()[index_back].getContext() === 'colist') {
152152

153153
// We have hit another callout list, but there was no list block first.
154-
// Assume we have it an error
154+
// Assume we have an error
155155
throw "Callout list found while seeking listing"
156156
}
157157

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asciidoctor-external-callout",
3-
"version": "0.0.6-beta5",
3+
"version": "0.0.6-beta6",
44
"description": "Asciidoctor extension that adds support for callouts added outside the listing block.",
55
"main": "asciidoctor-external-callout.js",
66
"scripts": {

sample.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ExternalCalloutTreeProcessor < Extensions::TreeProcessor
3434
3535
end
3636
----
37-
<1> thes test
37+
3838

3939
Can I add something in here?
4040

0 commit comments

Comments
 (0)