summaryrefslogtreecommitdiffstats
path: root/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua
diff options
context:
space:
mode:
Diffstat (limited to 'doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua')
-rw-r--r--doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua b/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua
index 92dc6895750f..1c745393a04b 100644
--- a/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua
+++ b/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua
@@ -27,6 +27,10 @@ function Code(elem)
content = '<refentrytitle>' .. title .. '</refentrytitle>' .. (volnum ~= nil and ('<manvolnum>' .. volnum .. '</manvolnum>') or '')
elseif elem.attributes['role'] == 'file' then
tag = 'filename'
+ elseif elem.attributes['role'] == 'command' then
+ tag = 'command'
+ elseif elem.attributes['role'] == 'option' then
+ tag = 'option'
end
if tag ~= nil then