summaryrefslogtreecommitdiffstats
path: root/docbook/asciidoctor-macros/cveidlink-inline-macro.rb
diff options
context:
space:
mode:
Diffstat (limited to 'docbook/asciidoctor-macros/cveidlink-inline-macro.rb')
-rw-r--r--docbook/asciidoctor-macros/cveidlink-inline-macro.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/docbook/asciidoctor-macros/cveidlink-inline-macro.rb b/docbook/asciidoctor-macros/cveidlink-inline-macro.rb
new file mode 100644
index 00000000..beb19a3b
--- /dev/null
+++ b/docbook/asciidoctor-macros/cveidlink-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 'cveidlink-inline-macro/extension') : (require_relative 'cveidlink-inline-macro/extension')
+
+Extensions.register do
+ inline_macro CVEIdLinkInlineMacro
+end