Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

unified - the compiler for your content

via egghead.io

Overview

unified enables new exciting projects like Gatsby to pull in Markdown, MDX to embed JSX, and Prettier to format it. It’s used in about 300k projects on GitHub and has about 10m downloads each month on npm.
unified uses abstract syntax trees, or ASTs, that plugins can operate on. It can even process between different formats. This means you can parse a markdown document, transform it to HTML, and then transpile back to markdown.
unified leverages a syntax tree specification (called unist or UST) so that utilities can be shared amongst different formats. In practice, you can use unist-util-visit to visit nodes using the same library with the same API on any supported AST.

Syllabus

  • Introduction to the remark CLI
  • Add a Dynamic Table of Contents to Your Markdown Documents with remark-toc
  • Convert Markdown to HTML with remark-html
  • Create a remark Plugin to Modify Markdown Headings
  • Remove Markdown Nodes from a Document with unist-util-remove
  • Store Heading Metadata in a Markdown Document with remark

Taught by

John Otander

Reviews

5 rating at egghead.io based on 2 ratings

Start your review of unified - the compiler for your content

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.