Skip to content

Commit

Permalink
Added a check for unprocessed markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
cdchapman committed Oct 28, 2016
1 parent 9ff81df commit 2fd1e12
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Checks
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fd1e12

Please sign in to comment.