Categorygithub.com/honmaple/org-golang
modulepackage
0.0.0-20231114033037-6fde0a6c226d
Repository: https://github.com/honmaple/org-golang.git
Documentation: pkg.go.dev

# README

** How to use? #+begin_src bash go get -u github.com/honmaple/org-golang #+end_src

#+begin_src go package main

 import (
     "fmt"
     "strings"

     "github.com/honmaple/org-golang"
     "github.com/honmaple/org-golang/render"
 )

 func main() {
     text := `
 * heading
     /italic/ italic/ /italic\/ \/italic\/ \/italic/
     =code= code= =code\= \=code\= \=code=
     ~code1~ code1~ ~code1\~ \~code1\~ \~code~
     #+begin_example
     s *sss* ss
     exam
     #+end_example

     - list1
     sssss
     - list4
         cccc
     - list2
     - title3
     vvvvc

 ** heading2

     | kk  | kv   |
     |-----+------|
     | sss | cccc |
     |     | cccc |
     | ddd | vvv  |`

     r := strings.NewReader(text)
     fmt.Println(org.HTML(r))
     fmt.Println(org.Debug(r))

     r1 := render.HTML{
         Toc: true,
         Document: org.New(r),
     }
     fmt.Println(r1.String())

     r2 := render.Debug{
         Document: org.New(r),
     }
     fmt.Println(r2.String())
 }

#+end_src

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author