about summary refs log tree commit diff
path: root/nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua')
-rw-r--r--nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua b/nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua
index 1c745393a04b..5c1b034d0792 100644
--- a/nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua
+++ b/nixpkgs/doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua
@@ -31,6 +31,10 @@ function Code(elem)
       tag = 'command'
     elseif elem.attributes['role'] == 'option' then
       tag = 'option'
+    elseif elem.attributes['role'] == 'var' then
+      tag = 'varname'
+    elseif elem.attributes['role'] == 'env' then
+      tag = 'envar'
     end
 
     if tag ~= nil then