Skip to content

Latest commit

 

History

History
79 lines (54 loc) · 1.84 KB

1.md

File metadata and controls

79 lines (54 loc) · 1.84 KB

Pandoc template in Bootstrap 5 {#pandoc-template-in-bootstrap-5}

This template has been created to use Pandoc as a parser for Markdown files. The idea is to use it to create static HTML files from my books. This template uses Bootstrap 5 and Font Awesome.

Example of uses {#example-of-uses}

Here few examples of how to use this template:

Colors {#colors}

You [can use]{color="red"} [some colors]{color="blue"} in your text.

Custom boxes {#custom-boxes}

Here few custom boxes with code:

::: {.mycode} [Title of the custom box]{.title}

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    public function up(): void {
        Schema::create('users', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            //...
        });
    }
};

:::

Another example for console:

::: {.mycode size=small} [Title 2]{.title}

root@1b29e46c10ae:/var/www/html# php artisan make:model Post -crms

:::

Sometimes we need inline console code like [ls path]{.commandbox} , other times we need to talk about some configuration file like [/etc/hosts]{.configfile} , config directory [/etc]{.configdir} inline text [help]{.inlineconsole} or a movie [The Imitation Game]{.movie}.

This is an infobox:

::: infobox This is an infobox! :::

This is an warnbox!

::: warnbox This is an warningbox! :::

This is an errorbox!

::: errorbox This is an errorbox! :::

This is an questionbox!

::: questionbox This is an questionbox! :::

This is an exercisebox

::: exercisebox This is an exercisebox :::