142 Commits

Author SHA1 Message Date
Egor Kovetskiy
bf4bbbe20a use my fork of blackfriday
Turns out the PR to the upstream is not merged and looks like the
maintainers didn't have a chance to merge it. The `replace` directive
causes some problems: https://github.com/kovetskiy/mark/issues/71
2021-03-11 09:00:45 +03:00
Gezim Sejdiu
2fc8ba3614 Align ancestors printouts (actual, expected) while validating ancestry 2021-02-24 23:07:32 +01:00
Egor Kovetskiy
c17a3d02d0 fix regression after #60 2021-02-04 12:18:28 +03:00
Egor Kovetskiy
931d9f706a confirm #64 by a test (broken now) 2021-02-04 11:58:44 +03:00
Egor Kovetskiy
7f6466a882 upgrade to blackfriday v2, fixes #53 and #61, add tests 2021-02-02 17:44:56 +03:00
Egor Kovetskiy
e190cdfb34 rollback #53 because of #63, add tests 2021-02-02 17:44:56 +03:00
Egor Kovetskiy
58ad4ff85b show what ancestors were expected 2021-02-02 08:06:14 +03:00
Tyler Cole
6633ff22ba fix for https://github.com/kovetskiy/mark/issues/58 2021-01-25 16:10:41 -06:00
Matt Radford
2db0de7228 Join lines in compiled markdown so lists render in Confluence without extra whitespace 2021-01-12 21:37:07 -08:00
Rolf Ahrenberg
1d8e43add2 Add --minor-edit command-line flag 2021-01-04 16:18:38 +02:00
Rolf Ahrenberg
f86dd2723a Add label support 2021-01-04 15:23:12 +02:00
elgreco247
8018b54627
Fix RestrictPageUpdatesServer (#45) 2020-12-08 11:53:15 +03:00
Egor Kovetskiy
d4008a5b72 Fix replacing relative links, fix #43 2020-12-04 00:28:52 +03:00
Juho Saarinen
63fe97beaa
Support for relative links (#33)
* Support for relative links

Fixes #25

* Error logging fixes

* Better regexp
2020-11-30 10:47:46 +03:00
Šarūnas Nejus
bcf2acb39f
Incorporate the collapsible code block (#39)
* Incorporate the collapsible code block

* Press tilda 3 times
2020-11-30 10:46:29 +03:00
Šarūnas Nejus
27e7af5b85
Parametrize the toc but have default values (#38) 2020-11-30 10:45:02 +03:00
Luke Fritz
4ea476ace2
Add Option for Dropping Leading H1 Heading (#36)
* Add goland IDE prefs to .gitignore

* Add flag for removing leading H1 heading in markdown; fixes #35

* Remove manpage reference to unused -n and -c args

* Add manpage docs for --drop-h1 argument

* Update docs; add docs for --drop-h1 argument

* Rename method to be more verbose; add code comments

Renames to `DropDocumentLeadingH1` to better denote the method's
purpose and adds code docs to this effect in order to hopefully
negate potential misuse on single lines.

* Revert "Add manpage docs for --drop-h1 argument"

This reverts commit 48a641baed05540f6172fe9b780b06eacad4dc28.

The `--drop-h1` flag is not understood as an argument in this
context, but rather is folded under `[options]`. This change
caused the arguments to not be properly parsed when the --drop-h1
flag was passed.
2020-11-20 17:44:41 +03:00
Egor Kovetskiy
ec4b258635 trace level is very verbose now 2020-11-03 17:14:33 +03:00
Stefano Teodorani
eda2e4704d
Added support for v2 Confluence page format (#29)
* Added support for v2 pge format

* Added toc macro

* Added toc to documentation

Co-authored-by: Stefano Teodorani <teopost@sviluppo06.apex-net.it>
2020-10-19 17:46:52 +03:00
Egor Kovetskiy
da99cbb9d7 drop attachment:// proto, improve docs
Removed attachment:// proto from docs, back compatibility is saved.
Now using the implementatin of `Attachment:` provided by @csoutherland.

Removed a bunch of swear stuff from docs, oh boy I was so frustrated at
that time.
2020-07-25 10:58:32 +03:00
Charles Southerland
7145cb49b3
Add ExactAttachment header 2020-06-25 00:36:08 -05:00
Stanislav Seletskiy
b7709aa344 #20: fix duplicated macro expansion 2020-04-13 16:56:06 +03:00
Egor Kovetskiy
95f50c1a34 do not require full ancestry, improve dry-run mode 2020-01-03 23:29:18 +03:00
Devin Auclair
4c5b505b38 Fixed #11: Allow Confluence Space to be mixed case
Swap `ToUpper` for `TrimSpace` in meta parser to leave the case as it
was passed.
2019-11-22 15:25:00 -05:00
Egor Kovetskiy
3cd9504a04 fix logging 2019-08-20 19:05:37 +03:00
Stanislav Seletskiy
ecee64f778
meta: fix newline handling 2019-08-13 19:48:11 +03:00
Stanislav Seletskiy
eb9f094a2d
fix always nil meta 2019-08-13 17:22:00 +03:00
Stanislav Seletskiy
6b83d140d5
use regexputil 2019-08-08 23:41:26 +03:00
Stanislav Seletskiy
559b913900
LoadTemplates: remove excessive return value 2019-08-08 15:54:03 +03:00
Stanislav Seletskiy
4cfda3afc1
add optional spaces in regexps 2019-08-08 15:32:34 +03:00
Stanislav Seletskiy
58f4a55100
add jira ticket template 2019-08-06 18:11:01 +03:00
Stanislav Seletskiy
07a8e3f9d7
implement macros & includes 2019-08-06 16:38:47 +03:00
Stanislav Seletskiy
240aeddf08
api: use different restrict api for cloud
https://developer.atlassian.com/cloud/confluence/rest/#api-content-id-restriction-post
2019-07-23 22:49:14 +03:00
Stanislav Seletskiy
45e96ed864
add new format headers 2019-05-01 16:58:28 +03:00
Stanislav Seletskiy
94f925d796
api: fix invalid json annotation 2019-05-01 16:56:07 +03:00
Egor Kovetskiy
319faede07 fix context for cloud confluence when creating attach 2019-04-22 14:01:01 +03:00
Egor Kovetskiy
6b080ecf7f fix context for cloud confluence 2019-04-22 13:52:10 +03:00
Egor Kovetskiy
51f28f8f06 add pseudo protocol attachment:// 2019-04-20 10:24:30 +03:00
Egor Kovetskiy
2abc2f122b create/update attachment 2019-04-19 17:35:05 +03:00
Egor Kovetskiy
76ddde31ab wip: attachments 2019-04-19 10:31:41 +03:00
Egor Kovetskiy
5f582e51e6 move CompileMarkdown to package 2019-04-14 13:53:44 +03:00
Egor Kovetskiy
ada6f828ff separate mark into packages 2019-04-08 22:44:27 +03:00