Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM debian:stable AS builder

RUN apt-get update && apt-get install -y build-essential ninja-build libncursesw5-dev liblua5.2-dev zlib1g-dev libxft-dev

COPY . /app

WORKDIR /app

RUN make

FROM debian:stable-slim

COPY --from=builder /app/bin/wordgrinder-builtin-curses-release /bin/wordgrinder

CMD /bin/wordgrinder


10 changes: 10 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ To install, do:

sudo make install PREFIX=/usr

To build with Docker, simply do:

docker build -t wordgrinder:1 .

Run the Docker image, volume mounting your current work directory and existing settings.dat file:

docker run -it --rm --workdir=/work -v $PWD:/work -v $HOME/.wordgrinder:/root/.wordgrinder wordgrinder:1



(Change PREFIX to whatever you like; naturally, if you're not installing in a
global location, you don't need sudo.)

Expand Down
4 changes: 3 additions & 1 deletion src/lua/document.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ local stylemarkup =
["H1"] = ITALIC + BRIGHT + BOLD + UNDERLINE,
["H2"] = BRIGHT + BOLD + UNDERLINE,
["H3"] = ITALIC + BRIGHT + BOLD,
["H4"] = BRIGHT + BOLD
["H4"] = BRIGHT + BOLD,
["PRE"] = BRIGHT + ITALIC,
["RAW"] = BRIGHT + BOLD
}

DocumentSetClass =
Expand Down
3 changes: 2 additions & 1 deletion src/lua/export/markdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ local function unmarkdown(s)
s = s:gsub("- ", "\\- ")
s = s:gsub("<", "\\<")
s = s:gsub(">", "\\>")
s = s:gsub("`", "\\`")
--allows for inline preformatted text in markdown
--s = s:gsub("`", "\\`")
s = s:gsub("_", "\\_")
s = s:gsub("*", "\\*")
return s
Expand Down