Skip to content

Commit

Permalink
Pass the UNSAFE option to commonmark
Browse files Browse the repository at this point in the history
  • Loading branch information
yoannchaudet committed Mar 4, 2022
1 parent 7ed2a62 commit cc3bb0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/github-pages/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def restrict_and_config_markdown_processor(config)
config["markdown"] = "CommonMarkGhPages"
config["commonmark"] = {
"extensions" => %w(table strikethrough autolink tagfilter),
"options" => %w(footnotes),
"options" => %w(unsafe footnotes),
}
end

Expand Down
2 changes: 1 addition & 1 deletion spec/github-pages/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
expect(effective_config["markdown"]).to eql("CommonMarkGhPages")
expect(effective_config["commonmark"]).to eql(
"extensions" => %w(table strikethrough autolink tagfilter),
"options" => %w(footnotes)
"options" => %w(unsafe footnotes)
)
end
end
Expand Down

0 comments on commit cc3bb0a

Please sign in to comment.