# Block Directives

**URL:** <https://talk.commonmark.org/t/block-directives/802>\
**Category:** Extensions\
**Created:** [October 10, 2014, 3:04am UTC](https://talk.commonmark.org/t/block-directives/802 "2014-10-10T03:04:59Z")\
**Posts on this page:** 1\
**Showing post:** 43

<div class="post-metadata">

**Author:** ![mofosyne](https://talk.commonmark.org/user_avatar/talk.commonmark.org/mofosyne/32/1438_2.png) [@mofosyne](https://talk.commonmark.org/u/mofosyne)\
**Post date:** [October 21, 2014, 1:29pm UTC](https://talk.commonmark.org/t/block-directives/802/43 "2014-10-21T13:29:32Z")

</div>

Hmmm…

- Creating form inputs: [Introducing markdown extensions for form input](http://talk.commonmark.org/t/introducing-markdown-extensions-for-form-input/432)

- Generating plots and bargraphs, etc… `!plot( y=3x+2 )`

- Dynamically Updated Table of Contents `!TOC`

- Embedding video `!youtube[cats]`

- Metadata

- Printing page directives (e.g. splitting pages) `!pagesplit`

- Generating output from a code snippet `!eval( print "hello world")`

- Evaluating a maths input `!calc[1+1=]`

- Generating a table from remote source `!table(data.csv)`

- Including external commonmark files (e.g. compiling a book or report) `!include(intro.md)`

- Generating QR codes `!QRcode[google](www.google.com)`

- Including the first generic clipart found: `!clipart[cat dancing]( optional image url )`

- Image macro generator (Very useful for sight impaired readers):  
`!imagemacro[Of all the front yards in all the world][The cat walks into mine](Noir Dog)`

- Css overrides (block example): `!css: .underline{ text-decoration: underline; }`

- Text To Speech section: `!speak[I **stress** that you should really follow the following diagrams shown below]{ pointToID="#diagram" } `

- In a slideshow, these text is hidden from view, but is spoken out loud. Can view speech in transcription window.

- In html view, it is shown as a collated transcription under each header. Expandable as needed, with maybe a button to listen.

- In print view, it is seen as a speech box.

- This is good when writing educational material, e.g. lecturers.

- Document declaration (block directive) `!CommonMark: `:

- etc…

---

_[View the full topic](https://talk.commonmark.org/t/block-directives/802)._
