Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 17, 21, 25]
java: [17, 21, 25]
steps:
- name: Checkout sources
uses: actions/checkout@v7
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: 11
java-version: 17
distribution: 'zulu'

- name: Build with coverage
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: 11
java-version: 17
distribution: 'zulu'

- name: Android Lint checks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,14 @@ public void sourceSpans() {
.extensions(EXTENSIONS)
.includeSourceSpans(IncludeSourceSpans.BLOCKS_AND_INLINES)
.build();
Node document =
parser.parse(
"abc\n"
+ "http://example.com/one\n"
+ "def http://example.com/two\n"
+ "ghi http://example.com/three jkl");
var s =
"""
abc
http://example.com/one
def http://example.com/two
ghi http://example.com/three jkl
""";
Node document = parser.parse(s);

Paragraph paragraph = (Paragraph) document.getFirstChild();
Text abc = (Text) paragraph.getFirstChild();
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,24 @@ private static void standardTypesExample() {
var renderer = HtmlRenderer.builder().extensions(List.of(extension)).build();

var markdown =
"# GFM Alerts Demo\n\n"
+ "> [!NOTE]\n"
+ "> Highlights information that users should take into account.\n\n"
+ "> [!TIP]\n"
+ "> Helpful advice for doing things better.\n\n"
+ "> [!IMPORTANT]\n"
+ "> Key information users need to know.\n\n"
+ "> [!WARNING]\n"
+ "> Urgent info that needs immediate attention.\n\n"
+ "> [!CAUTION]\n"
+ "> Advises about risks or negative outcomes.\n";
"""
# GFM Alerts Demo

> [!NOTE]
> Highlights information that users should take into account.

> [!TIP]
> Helpful advice for doing things better.

> [!IMPORTANT]
> Key information users need to know.

> [!WARNING]
> Urgent info that needs immediate attention.

> [!CAUTION]
> Advises about risks or negative outcomes.
""";

var html = renderer.render(parser.parse(markdown));

Expand All @@ -56,13 +63,18 @@ private static void customTypesExample() {
var renderer = HtmlRenderer.builder().extensions(List.of(extension)).build();

var markdown =
"# Custom Alert Types\n\n"
+ "> [!NOTE]\n"
+ "> Useful information that users should know.\n\n"
+ "> [!TIP]\n"
+ "> Helpful advice for doing things better.\n\n"
+ "> [!BUG]\n"
+ "> This feature has a known issue with large files (see #42).\n";
"""
# Custom Alert Types

> [!NOTE]
> Useful information that users should know.

> [!TIP]
> Helpful advice for doing things better.

> [!BUG]
> This feature has a known issue with large files (see #42).
""";

var html = renderer.render(parser.parse(markdown));

Expand Down
Loading
Loading