PHP code example of buzzylab / laradown

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

    

buzzylab / laradown example snippets


Buzzylab\Laradown\MarkdownServiceProvider::class,

'Markdown' => Buzzylab\Laradown\Facades\MarkdownFacade::class



echo Markdown::render(); // OR echo Markdown::convert();

@extends('layouts.master')

@section('content')
<div>
    
  {{-- $content is markdown data --}}
  @markdown($content)
</div>
@stop

@extends('layouts.master')

@section('content')
<div>
  @markdown
  
  # Laradown Packag
  
  @endmarkdown
</div>
@stop

    {{-- Get defaute style file --}}
    @markdownstyle
    
    {{-- Custom style file --}}
    @markdownstyle($file)