Skip to content

Commit 8fbde76

Browse files
moulleohhhn
andauthored
feat: add r/docs/moul_md (#4499)
Signed-off-by: moul <[email protected]> --------- Signed-off-by: moul <[email protected]> Co-authored-by: Leon <[email protected]>
1 parent e385ffe commit 8fbde76

File tree

6 files changed

+831
-0
lines changed

6 files changed

+831
-0
lines changed

examples/gno.land/p/moul/md/md.gno

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
// - Supports basic Markdown syntax such as bold, italic, strikethrough, headers, and lists.
88
// - Manages multiline support in lists (e.g., bullet, ordered, and todo lists).
99
// - Includes advanced helpers like inline images with links and nested list prefixes.
10+
//
11+
// For a comprehensive example of how to use these helpers, see:
12+
// https://gno.land/r/docs/moul_md
1013
package md
1114

1215
import (

examples/gno.land/r/docs/home/home.gno

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Explore various examples to learn more about Gno functionality and usage.
1919
- [Routing for Render paths](/r/docs/routing) - Route Render paths with the ^p/demo/mux^ package.
2020
- [Embed images](/r/docs/img_embed) - Demonstrates how to embed an image in a realm render.
2121
- [Markdown](/r/docs/markdown) - Documentation for Gno Flavored Markdown syntax and features.
22+
- [p/moul/md Package Demo](/r/docs/moul_md) - Learn how to programmatically generate markdown using the p/moul/md package.
2223
- [Emitting Gno Events](/r/docs/events) - Emit Gno Events to make life off-chain easier.
2324
- [AVL Pager](/r/docs/avl_pager) - Paginate through AVL tree items.
2425
- [AVL Pager + Render paths](/r/docs/avl_pager_params) - Handle render arguments with pagination.

examples/gno.land/r/docs/markdown/markdown.gno

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,10 @@ The markdown support in Gno is being actively developed. Future enhancements may
646646
Markdown on Gno provides a familiar syntax for developers who have experience with GitHub Flavored Markdown, while adding blockchain-specific extensions that make it more powerful in the context of the Gno platform.
647647

648648
As the Gno ecosystem grows, expect the markdown capabilities to expand accordingly, providing even richer formatting and interactive elements for documentation and user interfaces.
649+
650+
## See Also
651+
652+
For programmatic markdown generation using Go code, check out the [±p/moul/md± demo](/r/docs/moul_md) which demonstrates how to use the ±p/moul/md± package to generate markdown content in your Gno realms.
649653
`
650654
output = strings.ReplaceAll(output, "±", "`")
651655
return output
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module = "gno.land/r/docs/moul_md"
2+
gno = "0.9"

0 commit comments

Comments
 (0)