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.3.0

April 4, 2019

Ólafur Páll Geirsson

Ólafur Páll Geirsson

Compile-only modifier

The new compile-only modifier makes it possible to validate that a code-example compiles successfully without evaluating the program at runtime. This feature can be useful to demonstrate code that performs side-effects

val name = scala.io.StdIn.readLine("Please enter your name: ")

The compile-only modifier works for both for JVM and Scala.js code blocks.

Recent Posts
  • Compile-only modifier
mdoc
Docs
Get started
Community
Chat on Gitter
More
GitHub
Copyright © 2025 mdoc developers