diff --git a/bbcode.go b/bbcode.go index cb1fea1..3b26dff 100644 --- a/bbcode.go +++ b/bbcode.go @@ -61,6 +61,12 @@ func (this *BBCodeRenderer) bbcode(data string) string { nil, }, + pregReplaceRule{ + regexp.MustCompile(`(?si)\[youtube](.*?)\[/youtube\]`), + ``, + nil, + }, + pregReplaceRule{regexp.MustCompile(`(?si)\[section=(.*?)](.*?)\[/section\]`), "", func(m []string) string { return `
` }}, diff --git a/rFormatting.go b/rFormatting.go index 569fca2..2432c89 100644 --- a/rFormatting.go +++ b/rFormatting.go @@ -33,6 +33,7 @@ func (this *WikiServer) routeFormatting(w http.ResponseWriter, r *http.Request) content += `