w-vi / ox-wk.el Goto Github PK
View Code? Open in Web Editor NEWEmacs org-mode export backend to some wiki formats
Emacs org-mode export backend to some wiki formats
A table of content is always generated and put in html at the beginning of output. It's between a '<div id="table-of-contents">
' tag and it lacks a '<HTML>
' tag.
Also, the links are generated as org links and would not work in a dokuwiki page.
Adding or removing the org-mode option #+OPTIONS: toc:nil
doesn't change ox-wk behaviour.
Here's an exemple of the first lines of the exported .txt file:
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#org0d23d74">1. Rigger</a>
<ul>
<li><a href="#org0a744f9">1.1. Vehicle</a>
<ul>
<li><a href="#orgb46ef39">1.1.1. Stats and values</a></li>
<li><a href="#org0d37c2b">1.1.2. Customizations (Riggers p. 122)</a></li>
</ul>
</li>
<li><a href="#org1f06c26">1.2. Rules</a>
<ul>
<li><a href="#org83a4459">1.2.2. Handling tests</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
====== Rigger ======
...
Running ox-wk-export-to-wiki
generates the error:
progn: Wrong type argument: symbolp, "utf-8"
I am running GNU Emacs 26.2 (build 1, x86_64-w64-mingw32) of 2019-04-13
on Windows 10. The org-mode version is Org mode version 9.2.3 (9.2.3-elpa @ c:/Users/<user>/.emacs.d/elpa/org-9.2.3/)
.
emacs -Q
C-x C-f ~/test.org
* Header
Lorem ipsum dolor sit amet...
C-x C-s
M-: (package-initialize)
ox-wk-export-to-wiki
This produces the following output in *Messages*
:
basic-save-buffer-2: Wrong type argument: symbolp, "utf-8"
Change (org-export-coding-system "utf-8")
to (org-export-coding-system nil)
in the ox-wk-export-to-wiki
function in ox-wk.el
.
At the moment, I'm not sure why the error happens or why this fixes it.
Acitivated ox-wk by setting load-path and adding (require 'ox-wk) but get a warning:
unknown key word :export-block in init.el afterwards.
Is this something old from org-8.0 ?
thx
Detlef
Hello,
I'm using this little nifty module and it looks stable enough. How about a release on Melpa? So one can install it as part of the initial setup of an EMACS environment, without needing a local copy or download link at hand.
Thanks!
Hi,
thanks for this exporter, it's very useful to me !
There is a bug if a list contains an empty item :
For instance :
*test
- item 1
-
shows :
wrong type of argument: arrayp, nil
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.