Skip to content

Commit

Permalink
Disable eagerCache by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Jun 27, 2023
1 parent e10d7c7 commit 9635f55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ COPY --from=build ${BUILD_DIR}/dist ${INSTALL_DIR}/

COPY <<EOF ${BINARY_DIR}/markdown-cli
#!/bin/bash
texlua ${INSTALL_DIR}/scripts/markdown/markdown-cli.lua eagerCache=false \"\$@\"
texlua ${INSTALL_DIR}/scripts/markdown/markdown-cli.lua \"\$@\"
echo
EOF

Expand Down
1 change: 0 additions & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ LUACLI_OPTIONS=\
contentBlocks=true \
debugExtensions=true \
definitionLists=true \
eagerCache=false \
fancy_lists=true \
fencedCode=true \
hashEnumerators=true \
Expand Down
11 changes: 5 additions & 6 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -2284,12 +2284,12 @@ interfaces and all the way up to the \LaTeX{} and \Hologo{ConTeXt} interfaces.

#### Option `eagerCache`

`eagerCache` (default value: `true`)
`eagerCache` (default value: `false`)

% \fi
% \begin{markdown}
%
% \Optitem[true]{eagerCache}{\opt{true}, \opt{false}}
% \Optitem[false]{eagerCache}{\opt{true}, \opt{false}}
%
: true

Expand All @@ -2309,8 +2309,7 @@ interfaces and all the way up to the \LaTeX{} and \Hologo{ConTeXt} interfaces.
command-line interface for plumbing.

This behavior will only be used when the \Opt{finalizeCache} option is
disabled. Recursive nesting of markdown document fragments is undefined
behavior when \Opt{eagerCache} is disabled.
disabled.

% \end{markdown}
% \iffalse
Expand Down Expand Up @@ -2369,14 +2368,14 @@ Hello \markdownRendererEmphasis{world}!\relax
\@@_add_lua_option:nnn
{ eagerCache }
{ boolean }
{ true }
{ false }
% \end{macrocode}
% \iffalse
%</tex>
%<*lua,lua-cli>
% \fi
% \begin{macrocode}
defaultOptions.eagerCache = true
defaultOptions.eagerCache = false
% \end{macrocode}
% \par
% \iffalse
Expand Down

0 comments on commit 9635f55

Please sign in to comment.