forked from hoedown/hoedown
-
Notifications
You must be signed in to change notification settings - Fork 12
Floating Elements
Martino Ferrari edited this page Feb 10, 2018
·
12 revisions
SciDown support a variety of floating elements:
- Figure
- Listing
- Table
- Equation
Inside of the floating elements the user can insert any standard markdown code inside the floating sections. It is also possible to give an id to the floating sections to then reference to them. Moreover some of the floating blocks support as well captioning.
To add a caption (optionally) simply use @caption(Your caption)
.
The figure block support id
and captioning
and is defined as:
@figure(id)
USER CODE
@caption(caption text)
@/
If you do not need the id
you can simply use @figure
or @figure()
.
Example code:
@figure
![](falcon.png)
@caption(This is a picture the *Falcon Heavy* rocket.)
@/
HTML rendered:
The table floating block has the same property of the figure. To open the table floating section the syntax is simple: @table
.
Example code
@table
|Col. 1|Col. 2|Col. 3|
|:-----|:-----|:-----|
|A |B |C |
|D |E |F |
|G |H |I |
@caption(A simple table)
@/
HTML rendered: