From bf3e5a0ef8f4536286b8606775c8d34fd9840b18 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 31 Jan 2022 03:01:42 +0000 Subject: CTAN sync 202201310301 --- macros/generic/markdown/examples/context-mkii.tex | 53 ++++++++++++++++++ macros/generic/markdown/examples/context-mkiv.tex | 65 +++++++++++++++++++++++ macros/generic/markdown/examples/context.tex | 37 ------------- 3 files changed, 118 insertions(+), 37 deletions(-) create mode 100644 macros/generic/markdown/examples/context-mkii.tex create mode 100644 macros/generic/markdown/examples/context-mkiv.tex delete mode 100644 macros/generic/markdown/examples/context.tex (limited to 'macros/generic/markdown/examples') diff --git a/macros/generic/markdown/examples/context-mkii.tex b/macros/generic/markdown/examples/context-mkii.tex new file mode 100644 index 0000000000..b5aaa0e04e --- /dev/null +++ b/macros/generic/markdown/examples/context-mkii.tex @@ -0,0 +1,53 @@ +\enableregime[utf] +\usetypescript[modern][ec] +\setupbodyfont[10pt,rm] +\setupexternalfigures[location={local,global,default}] + +% Load the Markdown module. +\usemodule[t][markdown] + +% Set options of the Markdown module. +\def\markdownOptionHashEnumerators{true} +\def\markdownOptionDefinitionLists{true} +\def\markdownOptionSmartEllipses{true} +\def\markdownOptionFootnotes{true} +\def\markdownOptionInlineFootnotes{true} +\def\markdownOptionFencedCode{true} +\def\markdownOptionContentBlocks{true} +\def\markdownOptionPipeTables{true} +\def\markdownOptionTableCaptions{true} +\def\markdownOptionTaskLists{true} + +% Set renderers of the Markdown module. +\definetyping + [latex] + +\setuptyping + [latex] + [option=TEX] + +\starttext + +% Typeset the document `example.md` by letting the Markdown package handle +% the conversion internally. +\markdownInput{./example.md} + +% Typeset the document `example.tex` that we prepared separately using the +% Lua command-line interface and that contains a plain TeX representation +% of the document `example.md`. +\doiffileelse{./example.tex}{\input example}{} + +% Typeset inline markdown text. +\startmarkdown + +Here are some non-ASCII characters: *ěščřžýáíé* +and ConTeXt special characters: *|*. + +Here is a hard line break that we inserted directly from the TeX source +by typing two spaces at the end of a line. +This is stretching TeX's abilities and is only supported in ConTeXt MkIV +and later. + +\stopmarkdown + +\stoptext diff --git a/macros/generic/markdown/examples/context-mkiv.tex b/macros/generic/markdown/examples/context-mkiv.tex new file mode 100644 index 0000000000..65d1d05468 --- /dev/null +++ b/macros/generic/markdown/examples/context-mkiv.tex @@ -0,0 +1,65 @@ +\enableregime[utf] +\usetypescript[modern][ec] +\setupbodyfont[10pt,rm] +\setupexternalfigures[location={local,global,default}] + +% Load the Markdown module. +\usemodule[t][markdown] + +% Set options of the Markdown module. +\def\markdownOptionHashEnumerators{true} +\def\markdownOptionDefinitionLists{true} +\def\markdownOptionSmartEllipses{true} +\def\markdownOptionFootnotes{true} +\def\markdownOptionInlineFootnotes{true} +\def\markdownOptionFencedCode{true} +\def\markdownOptionContentBlocks{true} +\def\markdownOptionPipeTables{true} +\def\markdownOptionTableCaptions{true} +\def\markdownOptionTaskLists{true} + +% Set renderers of the Markdown module. +\definehighlight + [markdownRendererEmphasis] + [style=\em] + +\definehighlight + [markdownRendererStrongEmphasis] + [style=bold] + +\definehighlight + [markdownRendererCodeSpan] + [style=mono] + +\definetyping + [latex] + +\setuptyping + [latex] + [option=TEX] + +\starttext + +% Typeset the document `example.md` by letting the Markdown package handle +% the conversion internally. +\markdownInput{./example.md} + +% Typeset the document `example.tex` that we prepared separately using the +% Lua command-line interface and that contains a plain TeX representation +% of the document `example.md`. +\doiffileelse{./example.tex}{\input example}{} + +% Typeset inline markdown text. +\startmarkdown + +Here are some non-ASCII characters: *ěščřžýáíé* +and ConTeXt special characters: *|*. + +Here is a hard line break that we inserted directly from the TeX source +by typing two spaces at the end of a line. +This is stretching TeX's abilities and is only supported in ConTeXt MkIV +and later. + +\stopmarkdown + +\stoptext diff --git a/macros/generic/markdown/examples/context.tex b/macros/generic/markdown/examples/context.tex deleted file mode 100644 index 85815149d1..0000000000 --- a/macros/generic/markdown/examples/context.tex +++ /dev/null @@ -1,37 +0,0 @@ -\enableregime[utf] -\usetypescript[modern][ec] -\setupbodyfont[10pt,rm] -\setupexternalfigures[location={local,global,default}] -\usemodule[t][markdown] -\def\markdownOptionHashEnumerators{true} -\def\markdownOptionDefinitionLists{true} -\def\markdownOptionSmartEllipses{true} -\def\markdownOptionFootnotes{true} -\def\markdownOptionInlineFootnotes{true} -\def\markdownOptionFencedCode{true} -\def\markdownOptionContentBlocks{true} -\def\markdownOptionPipeTables{true} -\def\markdownOptionTableCaptions{true} -\def\markdownOptionTaskLists{true} -\definetyping [latex] -\setuptyping [latex] [option=TEX] -\starttext -% Typeset the document `example.md` by letting the Markdown package handle -% the conversion internally. -\markdownInput{./example.md} - -% Typeset the document `example.tex` that we prepared separately using the -% Lua command-line interface and that contains a plain TeX representation -% of the document `example.md`. -\doiffileelse{./example.tex}{\input example}{} - -\startmarkdown -Here are some non-ASCII characters: *ěščřžýáíé* -and ConTeXt special characters: *|*. - -Here is a hard line break that we inserted directly from the TeX source -by typing two spaces at the end of a line. -This is stretching TeX's abilities and is only supported in ConTeXt MkIV -and later. -\stopmarkdown -\stoptext -- cgit v1.2.3