PathrockNetwork Gno Explorer
HomeBlocksTransactionsRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/moul/md/v0

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
v0
Namespace
moul / md
Files
4 (gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/moul/md/v0
gno
0.9

Files (4)

  • gnomod.tomltoml
  • md.gnogno
  • example_test.gnogno
  • md_test.gnogno
example_test.gnogno
1package md23import "strings"45func ExampleHeaders() {6	println(H1("Header 1"))7	println(H2("Header 2"))8	println(H3("Header 3"))9	println(H4("Header 4"))10	println(H5("Header 5"))11	println(H6("Header 6"))1213	// Output:14	// # Header 115	//16	// ## Header 217	//18	// ### Header 319	//20	// #### Header 421	//22	// ##### Header 523	//24	// ###### Header 625}2627func ExampleStyles() {28	println(Bold("bold"))29	println(Italic("italic"))30	println(Strikethrough("strikethrough"))3132	// Output:33	// **bold**34	// *italic*35	// ~~strikethrough~~36}3738func ExampleLists() {39	println(BulletList([]string{40		"Item 1",41		"Item 2\nMore details for item 2",42	}))43	println(OrderedList([]string{"Step 1", "Step 2"}))44	println(TodoList([]string{"Task 1", "Task 2\nSubtask 2"}, []bool{true, false}))45	println(Nested(BulletList([]string{"Parent Item", OrderedList([]string{"Child 1", "Child 2"})}), "  "))4647	// Output:48	// - Item 149	// - Item 250	//   More details for item 251	//52	// 1. Step 153	// 2. Step 254	//55	// - [x] Task 156	// - [ ] Task 257	//   Subtask 258	//59	//   - Parent Item60	//   - 1. Child 161	//     2. Child 262}6364func ExampleBlocks() {65	print(Paragraph("This is a paragraph."))66	// Blockquote adds multiple newlines which Output doesn't allow, so trim67	println(strings.TrimSpace(Blockquote("This is a blockquote\nSpanning multiple lines")))6869	// Output:70	// This is a paragraph.71	//72	// > This is a blockquote73	// > Spanning multiple lines74}7576func ExampleCode() {77	println(InlineCode("inline `code`"))78	println(CodeBlock("line1\nline2"))79	println(LanguageCodeBlock("go", "func main() {\nprintln(\"Hello, world!\")\n}"))80	println(HorizontalRule())8182	// Output:83	// `` inline `code` ``84	// ```85	// line186	// line287	// ```88	//89	// ```go90	// func main() {91	// println("Hello, world!")92	// }93	// ```94	//95	// ---96}9798func ExampleReferences() {99	println(Link("Gno", "http://gno.land"))100	println(Image("Alt Text", "http://example.com/image.png"))101	println(InlineImageWithLink("Alt Text", "http://example.com/image.png", "http://example.com"))102	println(FootnoteDefinition("ref", "This is a footnote"))103	// LinkReferenceDefinition adds multiple newlines which Output doesn't allow, so trim104	println(strings.TrimSpace(LinkReferenceDefinition("r-example", "/r/example", "")))105106	// Output:107	//108	// [Gno](http://gno.land)109	// ![Alt Text](http://example.com/image.png)110	// [![Alt Text](http://example.com/image.png)](http://example.com)111	// [^ref]:112	//     This is a footnote113	//114	// [r-example]: /r/example115}116117func ExampleColumns() {118	println("4 columns in one gno-columns tag:")119	println(Columns([]string{120		"Column1\ncontent1",121		"Column2\ncontent2",122		"Column3\ncontent3",123		"Column4\ncontent4",124	}, true))125126	// Should be automatically placed in multiple column tags127	println("3 cols per row without padding:")128	println(ColumnsN([]string{129		"Row1Column1\ncontent1",130		"Row1Column2\ncontent2",131		"Row1Column3\ncontent3",132		"Row2Column1\ncontent1",133		"Row2Column2\ncontent2",134		"Row2Column3\ncontent3",135		"Row3Column1\ncontent1",136		"Row3Column2\ncontent2",137		"Row3Column3\ncontent3",138	}, 3, false))139140	// Should be padded, up to 4 cols141	println("2 padded to 4:")142	println(ColumnsN([]string{143		"Column1\ncontent1",144		"Column2\ncontent2",145	}, 4, true))146147	// Output:148	// 4 columns in one gno-columns tag:149	// <gno-columns>150	// Column1151	// content1152	// <gno-columns-sep>153	// Column2154	// content2155	// <gno-columns-sep>156	// Column3157	// content3158	// <gno-columns-sep>159	// Column4160	// content4161	// </gno-columns>162	//163	// 3 cols per row without padding:164	// <gno-columns>165	// Row1Column1166	// content1167	// <gno-columns-sep>168	// Row1Column2169	// content2170	// <gno-columns-sep>171	// Row1Column3172	// content3173	// </gno-columns>174	// <gno-columns>175	// Row2Column1176	// content1177	// <gno-columns-sep>178	// Row2Column2179	// content2180	// <gno-columns-sep>181	// Row2Column3182	// content3183	// </gno-columns>184	// <gno-columns>185	// Row3Column1186	// content1187	// <gno-columns-sep>188	// Row3Column2189	// content2190	// <gno-columns-sep>191	// Row3Column3192	// content3193	// </gno-columns>194	//195	// 2 padded to 4:196	// <gno-columns>197	// Column1198	// content1199	// <gno-columns-sep>200	// Column2201	// content2202	// <gno-columns-sep>203	//204	// <gno-columns-sep>205	//206	// </gno-columns>207}208

Functions

not supported for pure packages by the node (vm/qfuncs)

Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.