152 Commits

Author SHA1 Message Date
Stephen Paulger
9b91ee3344 Add option to pass a version message 2024-04-11 19:31:32 +02:00
Manuel Rüger
78f7666697 Document column macro 2024-01-26 16:18:14 +01:00
Guilherme Paiva
8dd83bdf62 add support to column macro 2024-01-26 16:09:44 +01:00
Manuel Rüger
a04f41161f Bump goldmark 1.6.0 and go 1.21 2024-01-26 16:03:25 +01:00
Stephen Paulger
aaae918478
Fix layout section attribute tags (#401)
* Fix attribute tags

* Update test date to expect attribute with ac: prefix
2023-12-19 13:57:52 +01:00
Manuel Rüger
292bd0d713 Bump mermaid render timeout to 90s 2023-10-23 21:12:37 +02:00
Manuel Rüger
04bf20c0a3 change: Move back to XHTML 2023-10-23 21:12:37 +02:00
Manuel Rüger
d269369911 feat: Add fallback directory to load includes from 2023-10-19 13:32:39 +02:00
Manuel Rüger
8e16f6f29c change: Move from XHTML to HTML5 2023-10-18 15:29:16 +02:00
Judson Lester
3157a8c4d9 Rebase fixup 2023-09-11 12:02:39 +02:00
Judson Lester
da3b31b3a9 Fixes for Attachments 2023-09-11 12:02:39 +02:00
Judson Lester
f0d7bfdb75 Adding comments, removing stray imports 2023-09-07 21:30:52 +02:00
Judson Lester
20c65ca373 Adding linebreak stripping 2023-09-07 21:30:52 +02:00
Manuel Rüger
295d17e6f3 Sync confluencetag parser with upstream
Adds changes from
254b9f8f77
2023-09-04 22:37:55 +02:00
Manuel Rüger
f57b4245f9 chore: Migrate to a goldmark extension 2023-09-04 17:16:34 +02:00
Manuel Rüger
737b9239f8 feat: Allow scaling of mermaid rendering 2023-08-30 15:15:13 +02:00
Manuel Rüger
b426d5c6b1 Define parent pages from CLI 2023-08-10 08:02:38 +02:00
Manuel Rüger
8b72bc8e20 Add pagetreesearch macro 2023-08-09 15:43:06 +02:00
Manuel Rüger
bf16d55d68 Add recently-updated macro 2023-07-05 17:32:55 +02:00
Manuel Rüger
ac982f3077 Add panel macro 2023-07-05 15:48:11 +02:00
Manuel Rüger
4591586b01 Disable typographer extension
This caused issues with confluence macros
2023-06-14 15:56:40 +02:00
Manuel Rüger
857bc871e0 Fix flaky mermaid png test
Only check for the header as bytes might changed depending on system png
library
2023-06-14 15:54:53 +02:00
Ryan Kitchen
383e4ae2d0 Update pkg/mark/stdlib/stdlib.go
Co-authored-by: Manuel Rüger <manuel@rueg.eu>
2023-06-08 22:52:46 +02:00
Ryan
063b6e7e1b page-tree 2023-06-08 22:52:46 +02:00
Manuel Rüger
22bf46026b Fix user mentioning 2023-06-08 22:49:15 +02:00
Manuel Rüger
278488ed88 Update mermaid to v10.2.0 2023-05-26 11:26:44 +02:00
Zackery Griesinger
80d3be268d Add Jira Filter View Macro 2023-05-25 18:05:31 +02:00
Manuel Rüger
0988a7aba1 Add Page properties macro 2023-05-25 07:21:10 +02:00
Manuel Rüger
28ee195a77 Add Page Properties Report macro 2023-05-25 07:21:10 +02:00
Manuel Rüger
3307f329d9 Add contentbylabel macro 2023-05-25 07:21:10 +02:00
Manuel Rüger
0b6dd09013 Drop newlines completely from macros 2023-05-23 12:30:46 +02:00
Manuel Rüger
9a37fc4713 Drop newlines within macros
Newlines will cause trouble when rendering and the macro is used inside
a table.
2023-05-23 11:49:04 +02:00
Manuel Rüger
6a63913a1e Add user profile macro 2023-05-23 07:33:11 +02:00
Manuel Rüger
d67cc63871 Fallback to old user search 2023-05-23 07:33:11 +02:00
Manuel Rüger
08281712cc Add expand macro 2023-05-23 07:33:11 +02:00
Manuel Rüger
484f988f32 Move drop-h1 to the renderer
This is more reliable than a regular expression.
2023-05-22 07:55:04 +02:00
Manuel Rüger
2aa1606d11 Fix usage of strings.ReplaceAll 2023-05-05 14:51:51 +02:00
Rémi Courtel
eba2396010 fix 305: external images URLs are not properly escaped 2023-05-05 14:41:59 +02:00
Manuel Rüger
622be6e25f Support customizable layouts 2023-05-05 10:52:04 +02:00
Manuel Rüger
13c594981e Fix mermaid-go rendering 2023-05-03 21:31:45 +02:00
Manuel Rüger
fd97ee70f9 Support inline images 2023-05-03 18:47:20 +02:00
Dreampuf
d9d560eda0 Add support for mermaid via library
Implementation is largely based on: https://github.com/kovetskiy/mark/pull/167

Co-Authored-By: Manuel Rueger <manuel@rueg.eu>
2023-04-25 23:59:17 +02:00
Manuel Rüger
262853f6c0 Simplify config handling
* Switch to urfave/cli/v2
* Add more environment variables
2023-04-20 14:34:55 +02:00
Manuel Rüger
9bb9f45326 feat: Support anchor macro 2023-04-03 13:11:35 +02:00
Manuel Rüger
deb7cd9cbc feat: Add Excerpt and ExcerptInclude macros 2023-03-31 17:35:18 +02:00
Manuel Rüger
1285947ab3 feat: Support page inclusion macro
Also generalize the ac_tag_parser a bit and support <ri:* /> tags as
well
2023-03-31 16:47:24 +02:00
Bernd Ahlers
80d906417c
Fix custom link renderer and add tests for Confluence links
Since we now have a custom parser for <ac:*/> tags, the custom link
renderer added an additional </a> tag at the end of each internal
Confluence link.

Add tests for internal links and add an example for internal links with
spaces in page titles to the README file.
2023-03-31 11:09:58 +02:00
Bernd Ahlers
6e4a912b11
Implement a custom parser for <ac:*/> tags
This replaces the workaround to replace colons in <ac:*/> tags with a
magic string with a custom parser for these tags to parse them as
ast.KindRawHtml.

The custom parser is a stripped down version of goldmark's rawHTMLParser.
2023-03-31 10:51:50 +02:00
Bernd Ahlers
974de93ef1
Rename variable 2023-03-30 14:34:19 +02:00
Bernd Ahlers
238ae29b59
Fix "<ac:*>" tag rendering
Extend the existing workaround to avoid HTML element escaping to handle
more variants.
2023-03-30 14:30:15 +02:00