PHP code example of professional-wiki / native-markdown

1. Go to this page and download the library: Download professional-wiki/native-markdown library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

professional-wiki / native-markdown example snippets


wfLoadExtension( 'NativeMarkdown' );
shell script
php maintenance/run.php NativeMarkdown:ConvertToMarkdownModel --md-suffix --dry-run
php maintenance/run.php NativeMarkdown:ConvertToMarkdownModel --namespace 3000
php maintenance/run.php NativeMarkdown:ConvertToMarkdownModel --md-suffix --namespace 10

  GET /index.php?title=Release_Notes.md&action=raw
  

  GET /rest.php/v1/page/Release_Notes.md
  → { "content_model": "markdown", "source": "# Release Notes\n...", ... }
  
shell script
php tests/phpunit/phpunit.php extensions/NativeMarkdown/tests/phpunit/