Merge branch 'master' of git.sr.ht:~h3rald/hastyscribe
h3rald h3rald@h3rald.com
Tue, 16 Jun 2026 12:23:04 +0000
4 files changed,
14 insertions(+),
12 deletions(-)
M
.github/workflows/add-artifacts-to-current-release.yml
→
.github/workflows/add-artifacts-to-current-release.yml
@@ -13,8 +13,8 @@ strategy:
matrix: os: - ubuntu-latest - - macos-latest - - windows-latest + - macos-15-intel + - windows-2022 env: CHOOSENIM_CHOOSE_VERSION: stable
M
hastyscribe.nimble
→
hastyscribe.nimble
@@ -12,15 +12,15 @@ import hastyscribepkg/config
# Package -version = pkgVersion -author = pkgAuthor -description = pkgDescription +version = "2.1.1" +author = "Fabio Cevasco" +description = "Self-contained markdown compiler generating self-contained HTML documents" license = "MIT" bin = @["hastyscribe"] srcDir = "src" installExt = @["nim", "json", "a", "css", "png", "svg", "c", "h", "in"] -requires "nim >= 2.0.0", "nimquery >= 2.0.1" +requires "nim >= 2.0.0", "nimquery >= 2.0.1", "htmlparser >= 0.1.0" # Tasks
M
src/hastyscribe.nim
→
src/hastyscribe.nim
@@ -14,7 +14,7 @@ sets,
] from nimquery import querySelectorAll -from std/htmlparser import parseHtml +from pkg/htmlparser import parseHtml import hastyscribepkg/niftylogger,@@ -27,11 +27,13 @@ export
consts when defined(windows) and defined(amd64): - {.passL: "-static -L"&getProjectPath()&"/hastyscribepkg/vendor/markdown/windows -lmarkdown".} + {.passL: "-static -L"¤tSourcePath().parentDir&"/hastyscribepkg/vendor/markdown/windows -lmarkdown".} elif defined(linux) and defined(amd64): - {.passL: "-static -L"&getProjectPath()&"/hastyscribepkg/vendor/markdown/linux -lmarkdown".} + {.passL: "-static -L"¤tSourcePath().parentDir&"/hastyscribepkg/vendor/markdown/linux -lmarkdown".} elif defined(macosx) and defined(amd64): - {.passL: "-Bstatic -L"&getProjectPath()&"/hastyscribepkg/vendor/markdown/macosx -lmarkdown -Bdynamic".} + {.passL: "-Bstatic -L"¤tSourcePath().parentDir&"/hastyscribepkg/vendor/markdown/macosx -lmarkdown -Bdynamic".} +else: + {.passL: "-static -L"¤tSourcePath().parentDir&"/hastyscribepkg/vendor/markdown/unknown -lmarkdown".} type@@ -572,7 +574,7 @@ ### MAIN
when isMainModule: const usage = " HastyScribe v" & pkgVersion & " - Self-contained Markdown Compiler" & """ - (c) 2013-2023 Fabio Cevasco + (c) 2013-2026 Fabio Cevasco Usage: hastyscribe [options] <markdown_file_or_glob> ...
M
src/hastyscribepkg/config.nim
→
src/hastyscribepkg/config.nim
@@ -1,4 +1,4 @@
const - pkgVersion* = "2.1.0" + pkgVersion* = "2.1.1" pkgAuthor* = "Fabio Cevasco" pkgDescription* = "Self-contained markdown compiler generating self-contained HTML documents"