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

Convert the outline to org style and then convert it back #5

Open
vainPointer opened this issue Dec 12, 2020 · 1 comment
Open

Convert the outline to org style and then convert it back #5

vainPointer opened this issue Dec 12, 2020 · 1 comment

Comments

@vainPointer
Copy link

I have a idea that make the thing easier. We can convert the dokuwiki-style outline (======) to the org-style (*) and then using org-mode to adjust the outline, then convert it back.

@WillForan
Copy link

pandoc might have what you want (C-u M-| pandoc -f dokuwiki -t org)

(defun my/d2o () (interactive) (shell-command-on-region (point-min) (point-max) "pandoc -f dokuwiki -t org" nil t) (org-mode)) 
(defun my/o2d () (interactive) (shell-command-on-region (point-min) (point-max) "pandoc -t dokuwiki -f org" nil t) (dokuwiki-mode)) 

but the process is not without some information loss
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants