package
module
Version:
v0.0.0-...-6fde0a6
Opens a new window with list of versions in this module.
Published: Nov 14, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
* org-golang
convert org-mode to html
[[https://orgmode.org/worg/org-syntax.html][https://img.shields.io/badge/org-syntax-brightgreen.svg]]
[[LICENSE][https://img.shields.io/badge/license-BSD-blue.svg]]
** 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
Documentation
¶
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.