@magic

markdown file example

markdown file description

see this file in the example dir for an example.

any kind of markdown can be used here, but if you use html natively, only tags valid in a html5 body, excluding script and style tags, are accepted.

this markdown file also starts with a magic @state declaration. it is used internally to, for example, add the title and meta rel="description" tags to the head of this html file.

yayWhatcha gonna do?

renders

markdown @magic-module

This is a @magic-module embedded in markdown.

usage

You can use any @magic-module in markdown like the following:

<MarkdownEmbed></MarkdownEmbed>

No self closing tags for now.

state

The state is available in this module, if declared:

<MarkdownEmbed state></MarkdownEmbed>

state.url:

Pass an array

You can pass arrays to @magic-module in markdown:

<MarkdownEmbed state array="['arr1', 'arr2', 'arr3']"></MarkdownEmbed>

arr1

arr2

arr3

Pass an object

You can pass objects to @magic-module in markdown:

<MarkdownEmbed state object="{ key1: 'value1', key2: 'value2' }"></MarkdownEmbed>

key1: value1

key2: value2