1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vdoc: don't escape < and > in README, fixes #7951 (#7960)

This commit is contained in:
Larpon
2021-01-08 17:44:19 +01:00
committed by GitHub
parent cbe7740d97
commit 78376a0250
2 changed files with 14 additions and 2 deletions

View File

@@ -3,6 +3,10 @@ module main
import strings
import v.doc
fn markdown_escape_script_tags(str string) string {
return str.replace_each(['<script>', '`', '</script>', '`'])
}
fn (vd VDoc) gen_markdown(d doc.Doc, with_toc bool) string {
mut hw := strings.new_builder(200)
mut cw := strings.new_builder(200)