Added AsciiDoc backend #15

Open
declantsien wants to merge 1 commits from declantsien/asciidoc into master
declantsien commented 2022-09-20 16:42:52 +00:00 (Migrated from github.com)

See Convert documents from AsciiDoc to Org . Need some extra effort to work.
Might be a good idea to include this.

See [Convert documents from AsciiDoc to Org](https://jeffkreeftmeijer.com/asciidoc-to-org/) . Need some extra effort to work. Might be a good idea to include this.
tecosaur commented 2022-09-21 01:41:27 +00:00 (Migrated from github.com)

At a glance this looks reasonable, you'll want to add org-pandoc-export-to-asciidoc here though:

d3cd2b0519/org-pandoc-import-transient.el (L37-L39)

At a glance this looks reasonable, you'll want to add `org-pandoc-export-to-asciidoc` here though: https://github.com/tecosaur/org-pandoc-import/blob/d3cd2b0519b53766a5454155b012e0a75e139ade/org-pandoc-import-transient.el#L37-L39
declantsien commented 2022-09-21 03:42:23 +00:00 (Migrated from github.com)

I wouldn't try to edit asciidoc source files from the Internets. It's properly result in some formatting changes.
I use this primarily to read files in Org mode, since I am more comfortable with it.

But still it's a valid use case for asciidoc files which are produced using ox-pandoc though. Made the change.

Also org-pandoc-import-transient-mode is buggy. Reported it here #16

I wouldn't try to edit asciidoc source files from the Internets. It's properly result in some formatting changes. I use this primarily to read files in Org mode, since I am more comfortable with it. But still it's a valid use case for asciidoc files which are produced using `ox-pandoc` though. Made the change. Also `org-pandoc-import-transient-mode` is buggy. Reported it here #16
tecosaur commented 2022-09-21 03:57:46 +00:00 (Migrated from github.com)

Thanks for that.

Looking at the updated PR, I'm a tad wary though about .txt being dedicated as an asciidoc extension, since its use is far more general.

Thanks for that. Looking at the updated PR, I'm a tad wary though about `.txt` being dedicated as an asciidoc extension, since its use is far more general.
declantsien commented 2022-09-21 04:45:05 +00:00 (Migrated from github.com)

I added it cause it's used by ox-pandoc and org-asciidoc. I wouldn't worry too much about it.

Currently there is only on backend associated with txt. Later if there are mroe backends provide txt, maybe we can add a prompt for org-pandoc-import-[as,to]-org to choose which backend to use?

I added it cause it's used by [`ox-pandoc`](https://github.com/emacsorphanage/ox-pandoc/blob/master/ox-pandoc.el#L80) and [`org-asciidoc`](https://github.com/yashi/org-asciidoc/blob/master/ox-asciidoc.el#L592). I wouldn't worry too much about it. Currently there is only on backend associated with `txt`. Later if there are mroe backends provide `txt`, maybe we can add a prompt for `org-pandoc-import-[as,to]-org` to choose which backend to use?
This pull request can be merged automatically.
You are not authorized to merge this pull request.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b declantsien/asciidoc master
git pull origin declantsien/asciidoc

Step 2:

Merge the changes and update on Forgejo.
git checkout master
git merge --no-ff declantsien/asciidoc
git push origin master
Sign in to join this conversation.
No description provided.