# "fastcore: An Underrated Python Library"
> A unique python library that extends the python programming language and provides utilities that enhance productivity.
- author: "<a href='https://twitter.com/HamelHusain'>Hamel Husain</a>"
- toc: false
- image: images/copied_from_nb/fastcore_imgs/td.png
- comments: true
- search_exclude: true
- hide: true
- categories: [fastcore, fastai]
- permalink: /fastcore/
- badges: true
After migrating the notebook, the front matter is moved to a raw cell, and some of the fields are converted to be compliant with Quarto. Furthermore, aliases may be added in order to prevent broken links:
---
toc: true
layout: post
description: A minimal example of using markdown with fastpages.
categories: [markdown]
title: An Example Markdown Post
---
# Example Markdown Post
---
aliases:
- /markdown/2020/01/14/test-markdown-post
categories:
- markdown
date: '2020-01-14'
description: A minimal example of using markdown with fastpages.
layout: post
title: An Example Markdown Post
toc: true
---
# Example Markdown Post
## Basic setup
Jekyll requires blog post files to b
#hide_res = fp_md_fm('../../tests/2022-09-06-homeschooling.md')test_eq(_res,"""---aliases:- /2022/09/06/homeschoolingauthor: Rachel Thomascategories:- advice- healthdate: '2022-09-06'description: You can permanently damage your back, neck, and wrists from working without an ergonomic setup. Learn how to create one for less at home.image: /images/ergonomic1-short.jpgsummary: You can permanently damage your back, neck, and wrists from working without an ergonomic setup. Learn how to create one for less at home.tags: advice healthtitle: 'Essential Work-From-Home Advice: Cheap and Easy Ergonomic Setups'---Lorem ipsum""")
Convert nbdev v1 projects to nbdev v2
Directives
nbdev v2 directives start with a #| whereas v1 directives were comments without a pipe |.
for example, if any of the lines below are valid nbdev v1 directives, they replaced with a #|, but only before the first line of code:
Callouts
In fastpages, there was a markdown shortuct for callouts for Note, Tip, Important and Warning with block quotes (these only worked in notebooks). Since Quarto has its own callout blocks with markdown syntax, we do not implement these shortcuts in nbdev. Instead, we offer a manual conversion utility for these callouts so that you can migrate from fastpages to Quarto.
_callouts="""## Boxes / Callouts> Warning: There will be no second warning!Other text> Important: Pay attention! It's important.> Tip: This is my tip.> Note: Take note of `this.`"""
Gets converted to:
## Boxes / Callouts
:::{.callout-warning}
There will be no second warning!
:::
Other text
:::{.callout-important}
Pay attention! It's important.
:::
Video Embeds
In fastpages, you could embed videos with a simple markdown shortcut involving a block quote with the prefix youtube:, that looked like this
> youtube: https://youtu.be/XfoYk_Z5AkI
However, in Quarto you can use the video extension to embed videos.