1 # SPDX-License-Identifier: MIT
2 require 'asciidoctor/extensions' unless RUBY_ENGINE == 'opal'
6 # An inline macro that generates a link to a Wireshark Security Advisory.
12 class WSSALinkInlineMacro < Extensions::InlineMacroProcessor
18 def process(parent, sanum, attrs)
19 satext = "wnpa-sec-#{sanum}"
20 target = %(https://www.wireshark.org/security/wnpa-sec-#{sanum})
21 create_doc_links(parent, target, satext)