-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implicit named attribute overrides explicit named attribute if set ea…
…rlier in document order (PR #32)
- Loading branch information
1 parent
f4ae21c
commit 5560314
Showing
3 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
test/tests/block/image/implicit-named-attribute-override-input.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[alt=Player Status] | ||
image::player-status.png[Player Status Window,600,800] |
25 changes: 25 additions & 0 deletions
25
test/tests/block/image/implicit-named-attribute-override-output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "document", | ||
"type": "block", | ||
"blocks": [ | ||
{ | ||
"name": "image", | ||
"type": "block", | ||
"form": "macro", | ||
"target": "player-status.png", | ||
"location": [{ "line": 2, "col": 1 }, { "line": 2, "col": 54 }], | ||
"metadata": { | ||
"attributes": { | ||
"alt": "Player Status Window", | ||
"$1": "Player Status Window", | ||
"$2": "600", | ||
"$3": "800", | ||
"width": "600", | ||
"height": "800" | ||
}, | ||
"location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 19 }] | ||
} | ||
} | ||
], | ||
"location": [{ "line": 1, "col": 1 }, { "line": 2, "col": 54 }] | ||
} |