We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db90a71 commit 7ae40a9Copy full SHA for 7ae40a9
_plugins/asciidoctor-extension.rb
@@ -52,6 +52,17 @@
52
end
53
54
55
+Extensions.register do
56
+ inline_macro do
57
+ named :config_property_copy_button
58
+ resolve_attributes false
59
+ process do |parent, target, attrs|
60
+ config_property = target.gsub('"', '\\\\"')
61
+ copy_btn = %(<button class="btn-copy fa fa-clipboard inline-btn-copy" data-clipboard-action="copy" data-clipboard-text="#{config_property}" title="Copy to clipboard" do-not-collapse="true"></button>)
62
+ create_inline_pass parent, %(#{copy_btn})
63
+ end
64
65
+end
66
67
### ALL CONFIG page processors
68
0 commit comments