summaryrefslogtreecommitdiffstats
path: root/docbook/asciidoctor-macros/wsbuglink-inline-macro.rb
diff options
context:
space:
mode:
Diffstat (limited to 'docbook/asciidoctor-macros/wsbuglink-inline-macro.rb')
-rw-r--r--docbook/asciidoctor-macros/wsbuglink-inline-macro.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/docbook/asciidoctor-macros/wsbuglink-inline-macro.rb b/docbook/asciidoctor-macros/wsbuglink-inline-macro.rb
new file mode 100644
index 00000000..3f192aab
--- /dev/null
+++ b/docbook/asciidoctor-macros/wsbuglink-inline-macro.rb
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+# Copied from https://github.com/asciidoctor/asciidoctor-extensions-lab/blob/master/lib/man-inline-macro.rb
+
+RUBY_ENGINE == 'opal' ? (require 'wsbuglink-inline-macro/extension') : (require_relative 'wsbuglink-inline-macro/extension')
+
+Extensions.register do
+ inline_macro WSBugLinkInlineMacro
+end