summaryrefslogtreecommitdiffstats
path: root/docbook/asciidoctor-macros/wssalink-inline-macro/extension.rb
diff options
context:
space:
mode:
Diffstat (limited to 'docbook/asciidoctor-macros/wssalink-inline-macro/extension.rb')
-rw-r--r--docbook/asciidoctor-macros/wssalink-inline-macro/extension.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/docbook/asciidoctor-macros/wssalink-inline-macro/extension.rb b/docbook/asciidoctor-macros/wssalink-inline-macro/extension.rb
deleted file mode 100644
index 3af9c8f3..00000000
--- a/docbook/asciidoctor-macros/wssalink-inline-macro/extension.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-# SPDX-License-Identifier: MIT
-require 'asciidoctor/extensions' unless RUBY_ENGINE == 'opal'
-
-include ::Asciidoctor
-
-# An inline macro that generates a link to a Wireshark Security Advisory.
-#
-# Usage
-#
-# wssalink:<dddd>[]
-#
-class WSSALinkInlineMacro < Extensions::InlineMacroProcessor
- include WsUtils
- use_dsl
-
- named :'wssalink'
-
- def process(parent, sanum, attrs)
- satext = "wnpa-sec-#{sanum}"
- target = %(https://www.wireshark.org/security/wnpa-sec-#{sanum})
- create_doc_links(parent, target, satext)
- end
-end