PHP code example of stepanenko3 / nova-markdown

1. Go to this page and download the library: Download stepanenko3/nova-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/ */

    

stepanenko3 / nova-markdown example snippets


use Stepanenko3\NovaMarkdown\Markdown;
...

Markdown::make('Excerpt', 'excerpt')
    ->rules('

[
    'h1',
    'h2',
    'h3',
    // 'headingSmaller',
    // 'headingBigger',
    'bold',
    'italic',
    'strikethrough',
    'quote',
    'unorderedList',
    'orderedList',
    'link',
    'image',
    'table',
    // 'horizontalRule',
    'code',
]

[
    'lines', // Show number of lines
    'words', // Show number of words
    'cursor', // Current cursor position line:word
]
 bash
php artisan vendor:publish --provider="Stepanenko3\NovaMarkdown\FieldServiceProvider" --tag="config"