Add some documentation & split Document into Configuration+Document
This commit is contained in:
parent
c98cdea4f0
commit
56ecb2d401
9 changed files with 77 additions and 44 deletions
|
@ -17,7 +17,7 @@ func main() {
|
|||
|
||||
js.Global().Set("run", js.NewCallback(func([]js.Value) {
|
||||
in := strings.NewReader(in.Get("value").String())
|
||||
html, err := org.NewDocument().Parse(in).Write(org.NewHTMLWriter())
|
||||
html, err := org.New().Parse(in, "").Write(org.NewHTMLWriter())
|
||||
if err != nil {
|
||||
out.Set("innerHTML", fmt.Sprintf("<pre>%s</pre>", err))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue