When trying to use the markdown class I got the error message : **Error: can't find file 'markdown'**

When trying to use the markdown class

require "markdown"

# TODO: Write documentation for `Md2html`
module Md2html
  VERSION = "0.1.0"

  text = "## This is title \n This is a [link](http://crystal-lang.org)"

I got the error message : Error: can’t find file ‘markdown’

In src/md2html.cr:2:1

2 | **require "markdown"**


**Error: can't find file 'markdown'**

I reinstalled Crystal using Brew (on my Mac), but the error persists.

Crystal 1.3.2 (2022-01-18)

LLVM: 13.0.0

Default target: aarch64-apple-darwin21.4.0

I’m not sure if it is a bug or if my Crystal installation is broken.

Maybe I’m missing something obvious?

If you’re trying to use the Markdown module that was in the stdlib, that was removed quite a while ago. Probably should just use a shard for it, e.g. GitHub - icyleaf/markd: Yet another markdown parser, Compliant to CommonMark specification, written in Crystal..

1 Like

I see.
Thank you very much!