diff --git a/app-sample/samples.json b/app-sample/samples.json index 1b4c5275..c5623142 100644 --- a/app-sample/samples.json +++ b/app-sample/samples.json @@ -39,6 +39,19 @@ "image" ] }, + { + "javaClassName": "io.noties.markwon.app.samples.html.HtmlOrderedListNumbersSample", + "id": "20210201140502", + "title": "HTML Ordered list numbers", + "description": "", + "artifacts": [ + "HTML" + ], + "tags": [ + "rendering", + "html" + ] + }, { "javaClassName": "io.noties.markwon.app.samples.html.InspectHtmlTextSample", "id": "20210201140501", diff --git a/app-sample/src/main/java/io/noties/markwon/app/samples/html/HtmlOrderedListNumbersSample.java b/app-sample/src/main/java/io/noties/markwon/app/samples/html/HtmlOrderedListNumbersSample.java new file mode 100644 index 00000000..717d6615 --- /dev/null +++ b/app-sample/src/main/java/io/noties/markwon/app/samples/html/HtmlOrderedListNumbersSample.java @@ -0,0 +1,35 @@ +package io.noties.markwon.app.samples.html; + +import io.noties.markwon.Markwon; +import io.noties.markwon.app.sample.ui.MarkwonTextViewSample; +import io.noties.markwon.html.HtmlPlugin; +import io.noties.markwon.sample.annotations.MarkwonArtifact; +import io.noties.markwon.sample.annotations.MarkwonSampleInfo; +import io.noties.markwon.sample.annotations.Tag; + +@MarkwonSampleInfo( + id = "20210201140502", + title = "HTML Ordered list numbers", + artifacts = MarkwonArtifact.HTML, + tags = {Tag.rendering, Tag.html} +) +public class HtmlOrderedListNumbersSample extends MarkwonTextViewSample { + @Override + public void render() { + final String md = "# HTML Ordered lists\n\n" + + "