Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / doc / asciidoctor-macros / wsbuglink-inline-macro / extension.rb
blob6d97bfa6ae018fece07351ebc013f39f9d321e7e
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 bug report.
8 # Usage
10 #   wsbuglink:<number>[<issue text>]
11 #   Default bug text is "Issue <number>".
13 class WSBugLinkInlineMacro < Extensions::InlineMacroProcessor
14   include WsUtils
15   use_dsl
17   named :wsbuglink
18   parse_content_as :text
20   def process(parent, issueid, attrs)
21     bugtext = attrs['text'] || %(Issue #{issueid})
22     target = %(https://gitlab.com/wireshark/wireshark/-/issues/#{issueid})
23     create_doc_links(parent, target, bugtext)
24   end
25 end