<commit_before># DokuWiki To Markdown Converter

This program converts a DokuWiki formatted text to markdown format.

It is by no means complete. I implemented just what was required to transform a
set of files. If you are interested in more functionality, please send me a
pull request (preferred) or request a feature with an issue.

It uses [Ragel State Machine Compiler](http://www.complang.org/ragel/) for
scanning the DokuWiki text.

dw2md is written in Go.

## Status

### Supported DokuWiki Syntax

* heading 1-5
* bold, italic, underline, monospace
* &lt;code&gt; and &lt;file&gt;
* &lt;del&gt;

### Unsupported DokuWiki Syntax

* subscript and superscript
* footnotes
* links and images
* tables
* lists
* quoting
* syntax highlighting for &lt;code&gt;
* &lt;html&gt; and &lt;php&gt; tags
* extensions from addon

## Limitations

dw2md does not check the validity of the given DokuWiki text. It is assumed
that the text is valid. If the input text is invalid, the output might be
anything.

Error reporting should be added / improved.

## Installation

	go get github.com/eglimi/dw2md

## Usage

If no options are given, dw2md assumes input from stdin, and outputs the result
to stdout. Alternatively, `-i` can be used to specify an input file, and `-o`
can be used to specify an output file.

Check `dw2md -help` for more information.

## Build Status

https://travis-ci.org/eglimi/dw2md.png<commit_msg>Correctly show travis-ci build status image in README.md.<commit_after># DokuWiki To Markdown Converter

This program converts a DokuWiki formatted text to markdown format.

It is by no means complete. I implemented just what was required to transform a
set of files. If you are interested in more functionality, please send me a
pull request (preferred) or request a feature with an issue.

It uses [Ragel State Machine Compiler](http://www.complang.org/ragel/) for
scanning the DokuWiki text.

dw2md is written in Go.

## Status

### Supported DokuWiki Syntax

* heading 1-5
* bold, italic, underline, monospace
* &lt;code&gt; and &lt;file&gt;
* &lt;del&gt;

### Unsupported DokuWiki Syntax

* subscript and superscript
* footnotes
* links and images
* tables
* lists
* quoting
* syntax highlighting for &lt;code&gt;
* &lt;html&gt; and &lt;php&gt; tags
* extensions from addon

## Limitations

dw2md does not check the validity of the given DokuWiki text. It is assumed
that the text is valid. If the input text is invalid, the output might be
anything.

Error reporting should be added / improved.

## Installation

	go get github.com/eglimi/dw2md

## Usage

If no options are given, dw2md assumes input from stdin, and outputs the result
to stdout. Alternatively, `-i` can be used to specify an input file, and `-o`
can be used to specify an output file.

Check `dw2md -help` for more information.

## Build Status

[![Build Status](https://travis-ci.org/eglimi/dw2md.png)](https://travis-ci.org/eglimi/dw2md)
{'fraction_non_alphanumeric': 0.08438674410659378, 'fraction_numerical': 0.0058079945336522035, 'mean_word_length': 4.266187050359712, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2288632', 'n_tokens_mistral': 950, 'n_tokens_neox': 922, 'n_words': 397}