mirror of https://github.com/usememos/memos
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
242 B
Go
15 lines
242 B
Go
2 years ago
|
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
|
||
|
}
|