|
|
|
@ -177,19 +177,23 @@ func replaceimgsand(zap map[string]bool, absolute bool) func(node *html.Node) st
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func filterchonk(ch *Chonk) {
|
|
|
|
|
var htf htfilter.Filter
|
|
|
|
|
htf.SpanClasses = allowedclasses
|
|
|
|
|
htf.BaseURL, _ = url.Parse(ch.XID)
|
|
|
|
|
func translatechonk(ch *Chonk) {
|
|
|
|
|
noise := ch.Noise
|
|
|
|
|
local := false
|
|
|
|
|
if ch.Format == "markdown" {
|
|
|
|
|
noise = markitzero(noise)
|
|
|
|
|
local = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var htf htfilter.Filter
|
|
|
|
|
htf.SpanClasses = allowedclasses
|
|
|
|
|
htf.BaseURL, _ = url.Parse(ch.XID)
|
|
|
|
|
ch.HTML, _ = htf.String(noise)
|
|
|
|
|
noise = string(ch.HTML)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func filterchonk(ch *Chonk) {
|
|
|
|
|
translatechonk(ch)
|
|
|
|
|
|
|
|
|
|
noise := string(ch.HTML)
|
|
|
|
|
|
|
|
|
|
local := originate(ch.XID) == serverName
|
|
|
|
|
|
|
|
|
|
zap := make(map[string]bool)
|
|
|
|
|
emuxifier := func(e string) string {
|
|
|
|
|