[go: nahoru, domu]

Skip to content

Commit

Permalink
Test using theme or import in \usepackage{markdown} in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Sep 9, 2024
1 parent 0ceded6 commit d3d84a2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/support/markdownthemewitiko_markdown_test.sty
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage
{markdownthemewitiko_markdown_test}%
[2023/12/29 A LaTeX theme for the Markdown package that writes used renderers to the log for testing]
[2024/09/09 A LaTeX theme for the Markdown package that writes used renderers to the log for testing]
\markdownLoadPlainTeXTheme
9 changes: 9 additions & 0 deletions tests/support/markdownthemewitiko_markdown_test_latex.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage
{markdownthemewitiko_markdown_test_latex}%
[2024/09/09 A LaTeX theme for the Markdown package that writes used renderers to the log for testing]
\markdownSetup {
import = {
witiko/markdown/text = snippet
}
}
10 changes: 6 additions & 4 deletions tests/templates/latex/input/head.tex.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
\csname UseRawInputEncoding\endcsname

% Load the package.
\usepackage[plain]{markdown}
\usepackage[
plain,
import = {
witiko/markdown/test/latex = snippet as testSnippet,
},
]{markdown}

% Load the support files.
\markdownSetup {
eagerCache = false,
outputDir = OUTPUT_DIRECTORY,
import = {
witiko/markdown/test = snippet as testSnippet,
}
}

\begin{document}
8 changes: 4 additions & 4 deletions tests/templates/latex/verbatim/head.tex.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
\csname UseRawInputEncoding\endcsname

% Load the package.
\usepackage[plain]{markdown}
\usepackage[plain, theme=witiko/markdown/test/latex]{markdown}
\markdownSetupSnippet{testSnippet}{
snippet = witiko/markdown/test/latex/snippet,
}

% Load the support files.
\markdownSetup {
eagerCache = false,
outputDir = OUTPUT_DIRECTORY,
import = {
witiko/markdown/test = snippet as testSnippet,
}
}

\begin{document}

0 comments on commit d3d84a2

Please sign in to comment.