We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1eb810 commit fd65411Copy full SHA for fd65411
_plugins/asciidoctor-extension.rb
@@ -52,6 +52,16 @@
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
+ copy_btn = %(<button class="btn-copy fa fa-clipboard inline-btn-copy" data-clipboard-action="copy" data-clipboard-text='#{target}' title="Copy to clipboard" do-not-collapse="true"></button>)
61
+ create_inline_pass parent, %(#{copy_btn})
62
+ end
63
64
+end
65
66
### ALL CONFIG page processors
67
0 commit comments