summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/yamlvars/YAMLvars.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/luatex/latex/yamlvars/YAMLvars.sty')
-rw-r--r--macros/luatex/latex/yamlvars/YAMLvars.sty16
1 files changed, 11 insertions, 5 deletions
diff --git a/macros/luatex/latex/yamlvars/YAMLvars.sty b/macros/luatex/latex/yamlvars/YAMLvars.sty
index 2392800651..73c40ba693 100644
--- a/macros/luatex/latex/yamlvars/YAMLvars.sty
+++ b/macros/luatex/latex/yamlvars/YAMLvars.sty
@@ -1,6 +1,6 @@
% Kale Ewasiuk (kalekje@gmail.com)
-% 2021-12-15
-% Copyright (C) 2021 Kale Ewasiuk
+% 2022-01-18
+% Copyright (C) 2021-2022 Kale Ewasiuk
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
@@ -23,15 +23,17 @@
% OR OTHER DEALINGS IN THE SOFTWARE.
+
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{YAMLvars}[2021-12-15]
+\ProvidesPackage{YAMLvars}[2022-01-18]
+
+\IfFileExists{markdown-tinyyaml.lua}{}{\PackageError{YAMLvars}{This package requires installation of the 'markdown' package, please install it and try again}{}}
\RequirePackage{luacode}
\RequirePackage{xspace}
\RequirePackage{etoolbox}
\RequirePackage[pl,extras]{penlight}
-
\luadirect{YAMLvars = require('YAMLvars')}
\DeclareOption{useyv}{
@@ -43,7 +45,11 @@
}
\DeclareOption{allowundeclared}{
\luadirect{YAMLvars.allowUndeclared = true}
-}\DeclareOption{debug}{
+}
+\DeclareOption{overwritedefs}{
+ \luadirect{YAMLvars.overwritedefs = true}
+}
+\DeclareOption{debug}{
\luadirect{YAMLvars.debug = true}
}