Loading...
 
Skip to main content

Converting pages from Wiki syntax (tiki) to Markdown syntax - Workaround

Status
Pending
Subject
Converting pages from Wiki syntax (tiki) to Markdown syntax - Workaround
Version
master
Category
  • Easy for Newbie Dev
Feature
Wiki (page view, edit, history, rename, etc)
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Volunteered to solve
ibrahim mussa
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

I upgraded a Tiki29 to master and enabled Markdown with the markdown syntax to used by default.
That didn't converted previous pages to markdown and I couldn't find a switch to do it page per page (like we had in previous version for the CKEditor).

The workaround I found;

  1. Open, Edit and save a page -> this will add this tag in the page data
  2. Go to you database, I used phpmyadmin and replace "tiki" with "markdown"


Your page will be converted to markdown and now you need to manually convert the content.

Solution

There could be a solution using the console.php, to be tested:

php console.php markdown:convert -h
Description:
Convert wiki pages between Tiki syntax and Markdown

Usage:
markdown:convert options -- <exclude>...

Arguments:
exclude Pages to exclude when converting all pages

Options:
--page=PAGE The page name to check. Leave empty to attempt conversion of all available pages
--markdown Convert to Markdown syntax
--tiki Convert to Tiki wiki syntax
--save Save converted content back to the database. Important: this will overwrite your existing content, proceed with caution!
--contents Convert contents of specified pages to the target syntax
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
ansi|no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
--site=SITE Multi-Tiki instance
--as-user=AS-USER Run the command as a different Tiki user
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
Use this command to convert Tiki wiki syntax stored in one or more pages to Markdown or vice-versa.

Workaround
Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8889
Reviewed by Wishlist Team On
20 Jan 26 22:00 UTC
Created
Sunday 04 January, 2026 17:39:55 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Wednesday 28 January, 2026 09:40:48 UTC


Show PHP error messages