Skip to content

Commit

Permalink
Remove deprecated filecontents package from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Sep 14, 2020
1 parent c6346cf commit dd2dc1c
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -4920,10 +4920,9 @@ following content:
``` tex
\documentclass{article}
\usepackage{markdown}
\usepackage{filecontents}
\begin{filecontents*}{example.md}
\begin{filecontents}[overwrite,nosearch,noheader]{example.md}
## A section
\end{filecontents*}
\end{filecontents}
\begin{document}
\markdownInput[shiftHeadings=-1]{example.md}
\markdownInput{example.md}
Expand Down Expand Up @@ -5092,8 +5091,7 @@ following content:
``` tex
\documentclass{article}
\usepackage[headerAttributes]{markdown}
\usepackage{filecontents}
\begin{filecontents*}{hamlet.md}
\begin{filecontents}[overwrite,nosearch,noheader]{hamlet.md}
# The Tragedy of Hamlet
Shakespeare's longest play.

Expand All @@ -5105,7 +5103,7 @@ Hamlet dies.

## Act I {#act-1}
Hamlet talks to ghost.
\end{filecontents*}
\end{filecontents}
\begin{document}
\markdownInput[slice=^ ^act-3]{hamlet.md}
\markdownInput[slice=act-1]{hamlet.md}
Expand Down Expand Up @@ -7619,12 +7617,11 @@ Using a text editor, create a text document named `document.tex` with the
following content:
``` tex
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{markdown-languages.json}
\begin{filecontents}[overwrite,nosearch,noheader]{markdown-languages.json}
{
"json": "JavaScript Object Notation",
}
\end{filecontents*}
\end{filecontents}
\usepackage[contentBlocks]{markdown}
\markdownSetup{
renderers = {
Expand Down

0 comments on commit dd2dc1c

Please sign in to comment.