mirror of
https://github.com/usememos/memos.git
synced 2025-01-08 21:33:38 +08:00
14 lines
242 B
Go
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
|
|
}
|