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)"
Markdown.to_html(text)
end
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?