-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1df4ad2
Showing
10 changed files
with
28,692 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM alpine:3.19.1 | ||
|
||
RUN mkdir -p /data/context && mkdir -p /data/context/bin | ||
|
||
COPY context-linuxmusl-64/install.sh /data/context/install.sh | ||
COPY context-linuxmusl-64/bin/* /data/context/bin/ | ||
|
||
RUN cd /data/context \ | ||
&& chmod +x install.sh \ | ||
&& ./install.sh | ||
|
||
ENV PATH=/data/context/tex/texmf-linuxmusl-64/bin:$PATH | ||
|
||
# Install Markdown package | ||
RUN apk add --no-cache wget \ | ||
&& cd /data/context \ | ||
&& wget -4 https://github.com/Witiko/markdown/releases/download/3.4.1/markdown.zip \ | ||
&& unzip markdown.zip \ | ||
&& mkdir -p tex/texmf-modules \ | ||
&& unzip markdown.tds.zip -d tex/texmf-modules \ | ||
&& context --generate \ | ||
&& rm -rf markdown markdown.zip markdown.tds.zip \ | ||
&& apk del --no-cache wget | ||
|
||
RUN addgroup -g 1000 context \ | ||
&& adduser -u 1000 -G context -D context | ||
|
||
USER context | ||
WORKDIR /home/context |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# MWE for [Witiko/markdown issue 402](https://github.com/Witiko/markdown/issues/402) | ||
|
||
I've uploaded the built image on Docker Hub for your convinience, but feel free to build it locally if you want (I've included the [`Dockerfile`](Dockerfile)). | ||
|
||
Run with: | ||
|
||
```shell | ||
docker-compose up | ||
``` | ||
|
||
You can check the input and output files in [`compile`](compile) folder. | ||
|
||
Compiling without use of markdown package runs without any issues. | ||
|
||
🙏🏻 Thank you in advance! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Test heading | ||
|
||
1. First item | ||
2. Second item |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
\usemodule[t][markdown] | ||
|
||
\starttext | ||
\markdownInput{index.md} | ||
\stoptext |
Oops, something went wrong.