You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: commonmark-ext-gfm-strikethrough/src/main/java/org/commonmark/ext/gfm/strikethrough/StrikethroughExtension.java
+57-5Lines changed: 57 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,29 +14,59 @@
14
14
importorg.commonmark.renderer.NodeRenderer;
15
15
16
16
/**
17
-
* Extension for GFM strikethrough using ~~ (GitHub Flavored Markdown).
17
+
* Extension for GFM strikethrough using {@code ~} or {@code ~~} (GitHub Flavored Markdown).
18
+
* <p>Example input:</p>
19
+
* <pre>{@code ~foo~ or ~~bar~~}</pre>
20
+
* <p>Example output (HTML):</p>
21
+
* <pre>{@code <del>foo</del> or <del>bar</del>}</pre>
18
22
* <p>
19
-
* Create it with {@link #create()} and then configure it on the builders
23
+
* Create the extension with {@link #create()} and then add it to the parser and renderer builders
Copy file name to clipboardExpand all lines: commonmark-ext-gfm-strikethrough/src/main/java/org/commonmark/ext/gfm/strikethrough/internal/StrikethroughDelimiterProcessor.java
Copy file name to clipboardExpand all lines: commonmark-ext-gfm-strikethrough/src/test/java/org/commonmark/ext/gfm/strikethrough/StrikethroughTest.java
0 commit comments