Tables
Tables aren’t part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
Name | Age |
---|---|
Bob | 27 |
Alice | 23 |
Inline Markdown within tables
Inline | Markdown | In | Table |
---|---|---|---|
italics | bold | code |
Code fences
cpp
// Simple C++ program to display "Hello World"
// Header file for input output functions
#include <iostream>
using namespace std;
// main function - where the execution of program begins
int main()
{
// prints hello world
cout<<"Hello World";
return 0;
}
txt
Roses are red,
Violets are blue,
Sugar is sweet,
And so are you.
html
<html>
<head>
</head>
<body>
<h1>Hello World<h1>
</body>
</html>
unspecified
The greatest glory in living lies not in never falling, but in rising every time we fall. -Nelson Mandela
The way to get started is to quit talking and begin doing. -Walt Disney
Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma – which is living with the results of other people's thinking. -Steve Jobs
If life were predictable it would cease to be life, and be without flavor. -Eleanor Roosevelt
If you look at what you have in life, you'll always have more. If you look at what you don't have in life, you'll never have enough. -Oprah Winfrey
If you set your goals ridiculously high and it's a failure, you will fail above everyone else's success. -James Cameron
Life is what happens when you're busy making other plans. -John Lennon
hardcoded HTML pre tags
OffsetTravel = (switch default travel (see below)) - Offset if OffsetTravel < 0 SwitchMixValue = OffsetTravel / 100 * Low rate else SwitchMixValue = OffsetTravel / 100 * High rate
static file with ‘hightlight-static-file’ shortcode
// Simple C++ program to display "Hello World"
// Header file for input output functions
#include <iostream>
using namespace std;
// main function - where the execution of program begins
int main()
{
// prints hello world
cout<<"Hello World";
return 0;
}
highlight shortcode (rendered by Hugo at build-time / compile-time)
|
|
with additional custom css classes (ie: ‘postedit’)
// Simple C++ program to display "Hello World"
// Header file for input output functions
#include <iostream>
using namespace std;
// main function - where the execution of program begins
int main()
{
// prints hello world
cout<<"Hello World";
return 0;
}
wrapped in linenumbers shortcode
// Simple C++ program to display "Hello World"
// Header file for input output functions
#include <iostream>
using namespace std;
// main function - where the execution of program begins
int main()
{
// prints hello world
cout<<"Hello World";
return 0;
}
console.log("Hello, World!");
<!DOCTYPE html>
<html>
<head>
<title>Hello World Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is my first HTML page.</p>
</body>
</html>
Image Galleries (as tables)
Image Galleries (images in a div)
Quotes:
According to the User Manual of the Spektrum DX9 Instruction Manual, this is the definition of Mixing:
Mixing allows control input for a channel to affect more than one channel at a time.
Mixing functions support:
- Mixing a channel to another channel.
- Mixing a channel to itself.
- Assigning offset to a channel
- Linking primary to secondary trim.
These mixes are available for each model memory. Select a channel for master and slave. Inputs for the Master Channel control both the master and Slave Channels. For example, Elevator to Flap makes elevator the Master Channel and flap the Slave Channel. Change the offset value to move the effective center position of the Slave Channel. Positive or negative value determines the direction of the offset. Offset is not available for curve mixes.
Comments