Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions converters/tags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ class TagsConverter

def initialize(backend, opts = {})
super
outfilesuffix(".tags.json")
# Pass `-a tags-prefix=qx_` to only include tags starting with `qx_`.
@prefix = opts[:document].attributes.fetch("tags-prefix", "")
# Pass `-a tags-output-suffix=.foo` to set suffix of generated output JSON file to ".foo"
outfilesuffix(opts[:document].attributes.fetch("tags-output-suffix", ".tags.json"))
# Pass `-a tags-match-prefix=foo` to only include tags starting with `foo`.
@prefix = opts[:document].attributes.fetch("tags-match-prefix", "")
end

# `node` is an `AbstractNode`.
Expand Down