Coder Social home page Coder Social logo

grodansparadis / dokuwiki-to-markdown-converter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from titledk/dokuwiki-to-markdown-converter

1.0 2.0 0.0 34.87 MB

Tools to convert the DokuWiki syntax to Markdown syntax.

License: Other

PHP 58.69% Shell 41.31%

dokuwiki-to-markdown-converter's Introduction

DokuWiki to Markdown Converter

Introduction

Tools to convert the DokuWiki syntax to Markdown syntax.
Please note it has some specific Liquibase regular expressions in scripts/DocuwikiToMarkdownExtra.php.

TODOS

Fix the following conversion inconsistencies

<del> is replaced by `<del>`. It should re replaced by <strike> - without the `` wrap
\\ should be replaced by 4 spaces and a line break
Links should be encapsulated by <>
bullets (like * or -) should have no spaces in front of them, and only one after

Convert single files

Place a file in the input dir, and run:
php convert.php input/myfile.txt

This will convert your file, and place a myfile.md next to your file.

Advanced usage (not yet tested)

Import an entire wiki

scp -P 2222 -r <username>@myserver:/sites/mysite/www/assets/data/pages/* input/

Convert to Markdown files

cd scripts
php Translate.php ../input <../output> < template.txt>

../output - if output is not supplied it will print the conversion to stdout.

template.txt - at the moment it only prepends the content of the template to each file it converts.

Credit

This project was forked from the SilverStripe Documentation Restructuring Project and was edited to add some extra functionality by ludoza.
It has subsequently been forked from ludoza's fork with the aim of creating a common way to export dokuwiki files to markdown (which is what we need in our 2013 restructuring here at title.dk).

dokuwiki-to-markdown-converter's People

Contributors

ajshort avatar anselmdk avatar bartlaarhoven avatar chillu avatar dalethedeveloper avatar howardgrigg avatar mrmorphic avatar wilr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.