mirror of
https://github.com/usememos/memos.git
synced 2025-01-09 13:50:24 +08:00
15 lines
242 B
Go
15 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
|
||
|
}
|