Repository navigation
Commit 28611d6
kroki-extension.rb is now the gem's version.rb, preprocess.rb, cache.rb and
extension.rb concatenated into one loadable script, with the plugin's three
local changes (header, "-intellij" referer suffix, registration block).
PlantUML !include, !includesub, !include_once, !include_many and !includeurl
are resolved before the diagram is sent to Kroki: relative to the diagram
file of the block macro, then to each kroki-plantuml-include-paths entry;
http(s) includes are fetched and inlined, only <stdlib> passes through. The
Kroki server otherwise drops a local include it cannot read and renders a
degraded diagram without warning. A failed diagram no longer aborts the
document, and block macro targets resolve relative to the document.
Tests decode the generated Kroki URL and assert the included text is inlined,
for a macro target and for an inline block using kroki-plantuml-include-paths.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
1 parent a7d0047 commit 28611d6
4 files changed
Lines changed: 681 additions & 66 deletions
File tree
- doc/users-guide/modules/ROOT/pages/features/preview
- src
- main/resources
- test/java/org/asciidoc/intellij
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
114 | 126 | | |
115 | 127 | | |
116 | 128 | | |
| |||
0 commit comments