Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / doc / asciidoctor-macros / wssalink-inline-macro / extension.rb
blob3af9c8f32ba7e8c92510f44f82db96d9e9697409
1 # SPDX-License-Identifier: MIT
2 require 'asciidoctor/extensions' unless RUBY_ENGINE == 'opal'
4 include ::Asciidoctor
6 # An inline macro that generates a link to a Wireshark Security Advisory.
8 # Usage
10 #   wssalink:<dddd>[]
12 class WSSALinkInlineMacro < Extensions::InlineMacroProcessor
13   include WsUtils
14   use_dsl
16   named :'wssalink'
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)
22   end
23 end