Skip to main content
Featured image for Testing MD Options from Obsidian to Hugo

Testing MD Options from Obsidian to Hugo

·1422 words·7 mins
Author
Kim Preece
Table of Contents

an example to get you started

This is a heading
#

This is placeholder body content for the main section. It helps preview typography, spacing, and link styling across the theme. Add a couple of sentences so the layout feels realistic and shows how standard paragraphs render within this section.

This is a subheading
#

Here is some dummy content under the subheading. These sentences exist purely to fill space and demonstrate how sub-sections look. They help validate margins, line height, and general readability.

This is a subsubheading
#

This is placeholder text for the subsubheading section. It adds enough words to display multi-line wrapping and ensure consistent styling across nested sections.

This is a subsubsubheading
#

This is a paragraph with bold and italic text. Check more at Blowfish documentation

Section One: Spacing Demo
#

This section adds several paragraphs to test vertical rhythm and ensure the small table of contents captures H2 and H3 entries.

Here is a second paragraph with extra lines so scrolling feels realistic. It helps validate padding above and below headings, and line-height within paragraphs.

  • Bullet one to verify list spacing
  • Bullet two with a little more text
  • Bullet three wrapping across multiple words

A short blockquote to check spacing around quotes.

Subsection A
#

Dummy content under a H3 to confirm nested entries appear in the TOC. Add enough words to wrap across lines and simulate real copy.

Subsection B
#

Another H3 with a couple of sentences to verify consistent margins and the TOC navigation between sibling subsections.


Section Two: Layout Checks
#

A longer block of text to exercise the layout. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

function demo() {
	console.log('spacing test');
}

Subsection C
#

Short paragraph beneath another H3 to confirm spacing is consistent with previous sections and works well across components.


Section Three: Deep Nesting
#

This section tests deeper heading levels and ensures the TOC can handle multiple nested entries without crowding.

Fine-grained Heading
#

Fine-grained H4 content to simulate deeper hierarchy. This confirms visual balance and spacing at lower levels.

Subsection D
#

Additional H3 content to see how the TOC groups sibling items under their parent H2.


Section Four: Long Content
#

Add multiple paragraphs to produce a longer scrollable area. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur luctus turpis sed massa dapibus, a pulvinar arcu fermentum.

Suspendisse potenti. Donec ultrices, mi vitae vehicula tincidunt, mauris quam lacinia nunc, at finibus turpis eros non ipsum. Aliquam erat volutpat.

  1. First numbered item for spacing checks
  2. Second item with additional text
  3. Third item that wraps to a second line

Section Five: Tables
#

Simple table to validate table spacing relative to headings and text.

Column A Column B
Value 1 Value 2
Value 3 Value 4

Power Query (M) Example
#

A realistic M query to test highlighting in the small TOC section.

let
	Source = Excel.Workbook(File.Contents("C:\\Data\\Sales.xlsx"), true),
	SalesSheet = Source{[Item="Sales", Kind="Sheet"]}[Data],
	PromotedHeaders = Table.PromoteHeaders(SalesSheet, [PromoteAllScalars = true]),
	ChangedTypes = Table.TransformColumnTypes(
		PromotedHeaders,
		{{"Date", type date}, {"Product", type text}, {"Amount", type number}}
	),
	FilteredRows = Table.SelectRows(ChangedTypes, each [Amount] > 0 and [Product] <> null),
	GroupedByDate = Table.Group(FilteredRows, {"Date"}, {{"Total", each List.Sum([Amount]), type number}}),
	Sorted = Table.Sort(GroupedByDate, {{"Date", Order.Ascending}})
in
	Sorted

Alternative identifier test (language tag m):

let
	Source = Csv.Document(
		File.Contents("C:\\Data\\Products.csv"),
		[Delimiter = ",", Columns = 3, Encoding = 65001, QuoteStyle = QuoteStyle.None]
	),
	ToTable = Table.FromColumns(Source),
	Renamed = Table.RenameColumns(ToTable, {{"Column1", "Product"}, {"Column2", "Category"}, {"Column3", "Price"}}),
	Typed = Table.TransformColumnTypes(Renamed, {{"Product", type text}, {"Category", type text}, {"Price", type number}})
in
	Typed

Section Six: Admonitions & Toggles
#

This section adds admonition-style notes, additional quotes, and a collapsible area to test spacing, typography, and interactive elements alongside the TOC.

Note: This is a friendly note to draw attention to helpful context. Keep an eye on spacing before and after this block.

Warning: Proceed carefully—this block is for testing visual emphasis only. Ensure margins are consistent across different admonition styles.

Tip: Use headings and short paragraphs to keep content scannable. Lists and code blocks help check alignment and baseline rhythm.

Error Test
#

No Support

Helpful advice for doing things better or more easily.

GitHub Test
#

Note

Useful information that users should know, even when skimming content.

Note

Useful information that users should know, even when skimming content.

Tip

Body text here.

Tip

Helpful advice for doing things better or more easily.

Important

Key information users need to know to achieve their goal.

Warning

Urgent info that needs immediate user attention to avoid problems.

Caution

Advises about risks or negative outcomes of certain actions.

Callout Overview
#

Abstract

Abstract: This paper discusses the advantages and challenges of microservice architecture.

Caution

Advises about risks or negative outcomes of certain actions.

Code

Code snippet:

function fetchData() {
    return axios.get('/api/data');
}
Conclusion

Conclusion: Based on the analysis above, we’ve decided to implement Docker containerization.

Danger

Danger! Critical security vulnerability detected in the system. Immediate action required.

Error

Error: Unable to connect to database. Please check your connection settings.

Example

Example:

def hello_world():
    print("Hello, World!")
Experiment

Experiment: Testing the impact of new caching strategies on system performance.

Goal

Goal: Reduce service response time by 30% by the end of this quarter.

Idea

Idea: Implement a machine learning-based code quality detection system.

Important

Key information users need to know to achieve their goal.

Info

System status: All services are operating normally. Current uptime: 99.99%.

Memo

Memo: Technical review meeting scheduled for next Tuesday at 2:00 PM.

Note

Useful information that users should know, even when skimming content.

Notify

System notification: Your password will expire in 30 days.

Question

Question: How can we optimize database query performance?

Quote

“Code is like humor. When you have to explain it, it’s bad.” - Cory House

Success

Congratulations! Your code has been successfully deployed to production.

Task

To-do list:

  • Update documentation
  • Deploy new version
Tip

Helpful advice for doing things better or more easily.

Warning

Urgent info that needs immediate user attention to avoid problems.

Customization
#

Choose a callout you prefer and add a title

Summary

This is a summary using the TIP callout!

Summary

This is a summary using the IDEA callout!

Header Only Mode
#

You can choose to only to show the header!

This paper discusses the advantages of microservice architecture
Ensure all tests pass before merging to main branch
Execute npm install to install all dependencies
We’ve decided to implement Docker containerization
Critical security vulnerability detected in the system
Error: Unable to connect to database. Please check your connection settings
Git commit message format: “feat: add user authentication”
Testing new caching strategy with Redis
Reduce service response time by 30% by the end of this quarter
Implement a machine learning-based code quality detection system
Please review and update your security settings
Current system status: All services are operating normally with 99.9% uptime
Technical review meeting scheduled for next Tuesday at 2:00 PM
Always backup your data before performing system updates
System notification: Your password will expire in 30 days
How can we optimize database query performance?
“Code is like humor. When you have to explain it, it’s bad.” - Cory House
Congratulations! Your code has been successfully deployed to production
Review and update API documentation by Friday
Use Ctrl + C to quickly terminate a running program
Warning: This operation will delete all data

Foldable Admonitions
#

Here are the details regarding API usage:
  • Endpoint: /api/v1/users is used to fetch the user list.
  • Authentication: A valid Bearer token must be provided in the request header.
  • Rate Limiting: 100 requests are allowed per minute.
Click here to view the tips

This is the tip!

Nested Admonitions
#

Can admonitions be nested?
Yes!, they can.
You can even use multiple layers of nesting.

Additional Block Quotes
#

Level 1 quote introducing the section.

Level 2 nested quote for hierarchy.

Level 3 deeply nested quote—spacing should remain readable.

Collapsible Content
#

Below is a toggle using native HTML details/summary for a safe, theme-agnostic collapse.

Click to expand: Dataset notes

This collapsible area contains a few items to test layout and spacing:

  • Bullet one with a short description
  • Bullet two that wraps onto a second line for realism
  • Bullet three including inline code like Table.PromoteHeaders
let
    Demo = Table.FromRows({{"A", 1}, {"B", 2}}, {"Label", "Value"}),
    Typed = Table.TransformColumnTypes(Demo, {{"Label", type text}, {"Value", Int64.Type}})
in
    Typed

Add a concluding sentence to check spacing at the end of the collapsed content.