diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-30 18:56:23 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-30 19:38:10 +0200 |
| commit | 9b6eb662150adbcd5ffe293a8719ffc4d7c14996 (patch) | |
| tree | a47bcdcab27e91b4fa5b368add1256127943df3f /mardown/ast_literal.go | |
| parent | baccf109b9d7eb7e95f084579eaea7b6d88b782b (diff) | |
feat(markdown): set eval return type
Diffstat (limited to 'mardown/ast_literal.go')
| -rw-r--r-- | mardown/ast_literal.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mardown/ast_literal.go b/mardown/ast_literal.go new file mode 100644 index 0000000..23b9004 --- /dev/null +++ b/mardown/ast_literal.go @@ -0,0 +1,9 @@ +package mardown + +import "html/template" + +type astLiteral string + +func (a astLiteral) Eval() (template.HTML, error) { + return template.HTML(template.HTMLEscapeString(string(a))), nil +} |
