From 2fd1e123fd3975c47b37bfb21194c92b2e9b4466 Mon Sep 17 00:00:00 2001 From: Chris Chapman Date: Thu, 27 Oct 2016 22:39:45 -0600 Subject: [PATCH] Added a check for unprocessed markdown --- Checks | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Checks b/Checks index 47847c57..4a20313c 100644 --- a/Checks +++ b/Checks @@ -19,6 +19,13 @@ check :no_unprocessed_erb do end end +check :no_unprocessed_markdown do + @output_filenames.each do |filename| + if filename =~ /html$/ && File.read(filename).match(/]\(/) + add_issue('unprocessed markdown detected', subject: filename) + end + end +end deploy_check :internal_links deploy_check :mixed_content