Coder Social home page Coder Social logo

ox-wk.el's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ox-wk.el's Issues

Table of content: bad links and generated even when '#+OPTIONS: toc:nil'

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 ======
...

ox-wk-export-to-wiki generates error

Problem

Running ox-wk-export-to-wiki generates the error:

progn: Wrong type argument: symbolp, "utf-8"

Version(s)

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/).

Steps to generate error

  1. Start emacs -Q
  2. C-x C-f ~/test.org
  3. Insert
* Header
Lorem ipsum dolor sit amet...
  1. C-x C-s
  2. M-: (package-initialize)
  3. ox-wk-export-to-wiki
  4. Answer 'yes' to "Buffer test.txt modified; kill anyway? (yes or no)"

This produces the following output in *Messages*:

basic-save-buffer-2: Wrong type argument: symbolp, "utf-8"

Workaround

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.

Does it work with latest org-mode?

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

Melpa release?

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!

stingp null if a list is empty

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.