memos/plugin/gomark/restore/restore.go
2023-12-28 22:35:39 +08:00

14 lines
242 B
Go

package restore
import "github.com/usememos/memos/plugin/gomark/ast"
func Restore(nodes []ast.Node) string {
var result string
for _, node := range nodes {
if node == nil {
continue
}
result += node.Restore()
}
return result
}