20 Commits

Author SHA1 Message Date
Manuel Rüger
14219aea59 fix: return error from Run() when ContinueOnError files fail
When --continue-on-error was set and one or more files failed to
process, Run() logged each failure but returned nil, making it
impossible for callers or CI systems to detect partial failures.

Track whether any file failed with a hasErrors flag and return a
descriptive error after all files have been attempted.

Update TestContinueOnError to reflect the corrected behaviour: the
test now asserts that an error IS returned (partial failure is
surfaced) while still verifying that all files in the batch are
attempted (not just the first one).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-16 19:18:29 +01:00
Manuel Rüger
a481424f7b fix: return error instead of panic from CompileMarkdown
Markdown conversion failures called panic(err), crashing the process
rather than allowing graceful error handling. Change the return type
to (string, []attachment.Attachment, error) and propagate the error.
Update all callers (mark.go, markdown_test.go) accordingly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-16 19:18:29 +01:00
Johan Fagerberg
c32cd79dc8 feat: add support for '--image-align' 2026-03-11 12:49:22 +01:00
Manuel Rüger
d2717f031d Add Confluence task list renderer for GFM task lists
Convert GFM task list items (- [x] / - [ ]) to Confluence
ac:task-list XML format instead of HTML checkboxes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-09 23:37:36 +01:00
Manuel Rüger
e294a7317e Move mention macro into a goldmark-parser/renderer 2026-02-08 00:59:43 +01:00
Manuel Rüger
a7390d8b33 Use strconv.Unqoute 2025-11-28 14:21:04 +01:00
Manuel Rüger
5e2b7b64e8 Drop cloudscript support for mermaid 2025-08-13 14:04:18 +02:00
Paul.Glesmann
32490b2c90 feat: add Support for converting Material for MkDocs Admonitions to Confluence Info Panels
chore: add test files

fix: add tests for stripnewline and droph1

chore: rename Admontion to MkDocsAdmonition, remove annoying comments

fix: import parser instead of copying the file

chore: rename mkDocs renderer function

fix: fix bug and pipeline

feat: add Support for converting Material for MkDocs Admonitions to Confluence Info Panels

fix: add tests for stripnewline and droph1

chore: rename Admontion to MkDocsAdmonition, remove annoying comments

fix: import parser instead of copying the file

chore: rename mkDocs renderer function

fix: fix bug and pipeline

chore: remove test for droph1 and stripNewLines

fix: add admonitions to StripNewLines and dropH1 tests

feat: add Support for converting Material for MkDocs Admonitions to Confluence Info Panels

fix: add tests for stripnewline and droph1

chore: rename Admontion to MkDocsAdmonition, remove annoying comments

fix: import parser instead of copying the file

chore: rename mkDocs renderer function

fix: fix bug and pipeline

feat: add Support for converting Material for MkDocs Admonitions to Confluence Info Panels

chore: rename Admontion to MkDocsAdmonition, remove annoying comments

fix: import parser instead of copying the file

chore: rename mkDocs renderer function

fix: fix bug and pipeline

chore: remove test for droph1 and stripNewLines

fix: add admonitions to StripNewLines and dropH1 tests

feat: add mkdocsadmonition as opt-in renderer and parser

fix: fix unit tests
2025-06-18 11:14:52 +02:00
Manuel Rüger
7536e288b4 Fix tests as well 2025-06-12 13:09:37 +02:00
Manuel Rüger
3cc39ffe79 Add support for d2lang 2025-05-30 23:37:15 +02:00
Manuel Rüger
d1aee4d571 Migrate to urfave/cli/v3 2025-05-28 21:53:45 +02:00
Manuel Rüger
92634869e3 Bump to go 1.24 2025-04-15 20:36:21 +02:00
Rich Scott
a0c6abfa6d Fix data path specification on TestContinueOnError
Signed-off-by: Rich Scott <richscott@sent.com>
2025-04-02 14:37:48 +02:00
Rich Scott
b630876c22 More code fixes for unit-testing '--continue-on-error'
Signed-off-by: Rich Scott <richscott@sent.com>
2025-04-02 14:37:48 +02:00
Rich Scott
ddc0ab9fbf Restructure code for more testaability
Move a number of funcs/files in the top-level `main` package into a new
`util` package, so test logic can directly invoke functions like
RunMark(), etc.  The main.go has been trimmed down to minimal sizing,
with former supporting funcs moved into `util` package, so they
can be run by unit tests.

Signed-off-by: Rich Scott <richscott@sent.com>
2025-04-02 14:37:48 +02:00
iyz
87160e8dd6 change COE flag testing logic to use internal functions 2025-04-02 14:37:48 +02:00
iyz
d88b81a6b8 add batch test, test function for continue-on-error flag 2025-04-02 14:37:48 +02:00
Manuel Rüger
876626098b Feat: Use custom heading anchors
Confluence Anchors are case-sensitive.
2024-10-22 11:15:33 +02:00
Manuel Rüger
d5c41f6f1f Remove superfluous testcases 2024-09-29 00:13:04 +02:00
Manuel Rüger
dc8842106b *: Reorganize code 2024-09-29 00:13:04 +02:00