Cheatsheet for Writing New Posts
Welcome to this concise cheatsheet designed to summarize the essential markdown syntax for writing effective blog posts. This guide serves as a quick reference for both new and experienced bloggers.
Embedding Images
Embed images to enhance your content and engage readers visually:
![Serene Landscape](/images/posts/cheatsheet_md/test_img.webp) <!-- w=300 desc="Image generated by [Dall-E 3](https://openai.com/dall-e-3/)" -->
Code Blocks
Incorporate code snippets to clarify technical explanations or showcase examples:
def greet(name):
print(f"Hello, {name}!")
function isEven(num) {
return num % 2 === 0;
}
// Testing the function
const num = 4;
if (isEven(num)) {
console.log(`${num} is even.`);
} else {
throw new Error('Wait, what?');
}
Creating Links
Link to external sites or related pages to provide additional information:
[Visit our website](https://example.com)
Organizing Information with Lists
Clearly organize information using bulleted or numbered lists:
- Item 1
- Item 2
Highlighting Content with Blockquotes
Use blockquotes to highlight important quotes or content:
> "The only way to do great work is to love what you do." - Steve Jobs
“The only way to do great work is to love what you do.” - Steve Jobs
Presenting Data with Tables
Tables are useful for presenting data or comparative information neatly:
| Name | Age | Location | Info |
|-------|:---:|:------|------:|
| Alice | 25 | New York | None |
| Bob | 30 | London | None |
Name | Age | Location | Info |
---|---|---|---|
Alice | 25 | New York | None |
Bob | 30 | London | None |
Emphasizing Key Points
Emphasize key points using bold, italic, or underlined text:
**Bold Text**
*Italic Text*
***Bold and Italic Text***
~Strikethrough Text~
<u>Underline Text</u>
<strike>Middle Line Text</strike>
<sup>Superscript Text</sup>
---
Bold Text
Italic Text
Bold and Italic Text
Strikethrough Text
Underline Text
Middle Line Text
Superscript Text
Adding Math Equations
Enhance scientific or academic posts with inline or block math equations:
Both inline and block math equations are supported. Here is an example of an inline math equation: $E=mc^2$.
$$
PE(pos, 2i) = \sin(\frac{pos}{10000^{\frac{2i}{d_{\text{model}}}}})
$$
"```math
L = \frac{1}{2} \rho v^2 S C_L
```"
Both inline and block math equations are supported. Here is an example of an inline math equation: .
Using Mermaid for Diagrams
Mermaid is a diagramming and charting tool that enables you to create flowcharts, sequence diagrams, Gantt diagrams, and more. Here are some examples:
Note: Detached the support for Mermaid diagrams.
Citations and References
Example of citations and references:
Li et al. 1 leveraged planar regularities for point line visual-inertial odometry.
In another work, Li et al. 2 proposed a co-planar parametrization method for stereo-SLAM and visual-inertial odometry.
Liu et al. 3 developed a deep learning-based channel estimation method for double-RIS aided massive MIMO systems.
Xu et al. 4 introduced PVI-DSO, a direct sparse visual-inertial odometry method that leverages planar regularities.
Li et al. 1, Li et al. 2, and Xu et al. 4 are a series of works that leverage planar regularities for visual SLAM.
Inline HTML
You can also use inline HTML to customize your content:
<details>
<summary>Click to expand</summary>
This is a hidden content block that can be expanded.
</details>
Click to expand
This is a hidden content block that can be expanded.Embedding Videos
Note: The following iframe examples are shown as plain text to avoid embedding videos in this guide. To embed a YouTube video, copy the iframe code and paste it into your markdown file.
<iframe width="420" height="315" src="https://www.youtube.com/watch?v=1H6gjsiza1A"></iframe>
<iframe width="420" height="315" src="https://www.youtube.com/embed/1H6gjsiza1A"></iframe>
Conclusion
This guide provides a foundation for using Markdown to create visually appealing and structurally sound blog posts. Happy blogging!
References
Footnotes
-
Li, Xin, Yijia He, Jinlong Lin, and Xiao Liu. “Leveraging planar regularities for point line visual-inertial odometry.” In 2020 IEEE/RSJ international conference on intelligent robots and systems (IROS), pp. 5120-5127. IEEE, 2020. ↩ ↩2
-
Li, Xin, Yanyan Li, Evin Pınar Örnek, Jinlong Lin, and Federico Tombari. “Co-planar parametrization for stereo-SLAM and visual-inertial odometry.” IEEE Robotics and Automation Letters 5, no. 4 (2020): 6972-6979. ↩ ↩2
-
Liu, Mengbing, Xin Li, Boyu Ning, Chongwen Huang, Sumei Sun, and Chau Yuen. “Deep learning-based channel estimation for double-RIS aided massive MIMO system.” IEEE Wireless Communications Letters 12, no. 1 (2022): 70-74. ↩
-
Xu, Bo, Xin Li, Jingrong Wang, Chau Yuen, and Jiancheng Li. “PVI-DSO: Leveraging Planar Regularities for Direct Sparse Visual-Inertial Odometry.” IEEE Sensors Journal 23, no. 15 (2023): 17415-17425. ↩ ↩2