forked from gnolang/gno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add r/docs/img_embed (gnolang#3241)
Embedding an image. --------- Signed-off-by: moul <[email protected]>
- Loading branch information
1 parent
82829e4
commit f4e30d9
Showing
3 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module gno.land/r/docs/img_embed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package image_embed | ||
|
||
// Render displays a title and an embedded image from Imgur | ||
func Render(path string) string { | ||
return `# Image Embed Example | ||
Here’s an example of embedding an image in a Gno realm: | ||
![Example Image](https://i.imgur.com/So4rBPB.jpeg)` | ||
} |