Custom HTML Elements

LSSG provides custom HTML elements that you can use directly in your markdown files to create rich layouts and components.

<centered>

Center content horizontally.

Markdown:

<centered>
This content will be centered.
</centered>

Result:

This content will be centered.

<links>

Create styled link collections in different layouts.

Links Boxes

Display links as styled boxes in a navigation layout.

Markdown:

<links boxes>
[Project 1](./project1.md "First project")
[Project 2](./project2.md)
[Project 3](./project3.md "Third project")
</links>

Result:

Links Grid

Display links as a grid of cards with optional cover images.

Markdown:

<links grid>
[![Bear Image](./custom_elements/bear.jpg) LMarkdown](./lmarkdown.md)
[![Bear Image](./custom_elements/bear.jpg) Architecture](./architecture.md)
[Tutorials](./tutorials.md)
</links>

Result:

Notes:

<carousel>

Create an image carousel with a main display and thumbnails.

Markdown:

<carousel>
![Image 1](image1.jpg)
![Image 2](image2.jpg)
![Image 3](image3.jpg)
![Image 4](image4.jpg)
</carousel>

Result:

Bear Image
Bear Image
Bear Image
Bear Image

Notes:

<sitetree>

Generate a hierarchical site navigation tree.

Markdown:

<sitetree>

With ignore list:

<sitetree ignore="404,blog">

Result:

Attributes: Notes: