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>
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>
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>
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
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>