memos/plugin/gomark/restore/restore.go

15 lines
242 B
Go
Raw Normal View History

2023-12-28 22:35:39 +08:00
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
}