diff --git a/Cargo.lock b/Cargo.lock index 34dc660..f9bc57b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -331,7 +331,7 @@ dependencies = [ [[package]] name = "simple-ssg" -version = "4.0.1" +version = "4.0.2" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index 1f29a43..a2f13dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ authors = ["Ryan Brue "] repository = "https://github.com/ryanabx/simple-ssg" license = "MIT" readme = "README.md" -version = "4.0.1" +version = "4.0.2" edition = "2021" description = "Plain and simple static site generator for Djot and Markdown light markup languages" diff --git a/src/main.rs b/src/main.rs index dd22636..2809a70 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ use anyhow::anyhow; use errors::SsgError; use jotdown::{Container, Event}; -use pulldown_cmark::CowStr; +use pulldown_cmark::{CowStr, Options}; use std::{ env, path::{Path, PathBuf}, @@ -265,7 +265,9 @@ fn process_markdown( file_parent_dir: &Path, web_prefix: Option<&str>, ) -> anyhow::Result { - let events = pulldown_cmark::Parser::new(markdown_input) + let mut options = Options::empty(); + options.insert(Options::ENABLE_GFM); + let events = pulldown_cmark::Parser::new_ext(markdown_input, options) .map(|event| -> anyhow::Result { match event { pulldown_cmark::Event::Start(pulldown_cmark::Tag::Link {