Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for twiki format #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ commands. The following table shows the supported formats:
| slidy | html | yes | yes |
| texinfo | texi | yes | yes |
| textile | | yes | yes |
| twiki | twiki | yes | yes |
| typst | typst | yes | yes |
| typst-pdf | pdf | no | yes |

Expand Down
29 changes: 28 additions & 1 deletion ox-pandoc.el
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
(markdown_mmd . md) (markdown_phpextra . md)
(markdown_strict . md) (native . hs)
(opendocument . xml) (plain . txt) (revealjs . html) (s5 . html)
(slideous . html) (slidy . html) (texinfo . texi)
(slideous . html) (slidy . html) (texinfo . texi) (twiki . twiki)
(zimwiki . zim)))

(defconst org-pandoc-option-type
Expand Down Expand Up @@ -258,6 +258,9 @@ version. If nil, no checks are performed and no warnings generated."
;;(?~ "to haddock." org-pandoc-export-to-haddock)
;;(?~ "to haddock and open." org-pandoc-export-to-haddock-and-open)
;;(?^ "as haddock." org-pandoc-export-as-haddock)
;;(?ä "to twiki." org-pandoc-export-to-twiki)
;;(?Ä "to twiki and open." org-pandoc-export-to-twiki-and-open)
;;(?ü "as twiki." org-pandoc-export-as-twiki)
)
"Pandoc menu-entry."
:group 'org-pandoc
Expand Down Expand Up @@ -1512,6 +1515,30 @@ version. If nil, no checks are performed and no warnings generated."
"Export as zimwiki."
(interactive) (org-pandoc-export 'zimwiki a s v b e t))

(defcustom org-pandoc-options-for-twiki nil
"Pandoc options for twiki."
:group 'org-pandoc
:type org-pandoc-option-type)

(defcustom org-pandoc-after-processing-twiki-hook nil
"Hook called after processing twiki."
:group 'org-pandoc
:type 'hook)

;;;###autoload
(defun org-pandoc-export-to-twiki (&optional a s v b e)
"Export to twiki."
(interactive) (org-pandoc-export 'twiki a s v b e))

;;;###autoload
(defun org-pandoc-export-to-twiki-and-open (&optional a s v b e)
"Export to twiki and open."
(interactive) (org-pandoc-export 'twiki a s v b e 0))

;;;###autoload
(defun org-pandoc-export-as-twiki (&optional a s v b e)
"Export as twiki."
(interactive) (org-pandoc-export 'twiki a s v b e t))

;;; ox-pandoc main routine

Expand Down