mdoc

mdoc

  • Docs
  • Blog
  • GitHub

›Recent Posts

Recent Posts

  • Fast typechecked markdown documentation with clear error messages
  • mdoc v1.3.0
  • mdoc v1.2.4
  • mdoc v1.1.1
  • mdoc v1.1.0

mdoc v1.0.0

December 30, 2018

Ólafur Páll Geirsson

Ólafur Páll Geirsson

I am pleased to announce the release of mdoc v1.0.0. mdoc is a markdown documentation tool for Scala inspired by tut.

New website

The mdoc readme has been replaced with this website and the documentation has been expanded to cover mdoc features in more depth. There is a new "Coming from tut" guide to help tut users migrate to mdoc.

New sbt plugin

There is now an sbt-mdoc plugin that makes it easier to use mdoc from sbt builds. See the installation instructions to learn how to use sbt-mdoc.

Docusaurus integration

The sbt-mdoc plugin includes a DocusaurusPlugin to integrate mdoc with Docusaurus. Several projects already use mdoc in combination with Docusaurus:

  • Scalafmt
  • Scalafix
  • Scalameta
  • Metals
  • Bloop
  • Coursier
  • Almond
  • fs2-kafka

See the docusaurus instructions to learn how to use DocusaurusPlugin and configure CI to publish to GitHub pages.

Improved :fail modifier

Previously, mdoc used Scala macros to implement the :fail modifier which produces incorrect compilation errors in rare cases. See #95. Now, mdoc translates each :fail modifier into a standalone Scala program and compiles it with the Scala compiler ensuring that compile errors are always accurate.

New :reset modifier

Now it's possible to clear all leading imports and declarations in the markdown document with the mdoc:reset modifier.

New organization

Previously, the mdoc repository lived in olafurpg/mdoc and was published under com.geirsson. Now, mdoc lives in scalameta/mdoc and is published under org.scalameta.

Recent Posts
  • New website
  • New sbt plugin
  • Docusaurus integration
  • Improved :fail modifier
  • New :reset modifier
  • New organization
mdoc
Docs
Get started
Community
Chat on Gitter
More
GitHub
Copyright © 2025 mdoc developers