Permalink
Browse files

Outputting correct HTML charset in HTML template depending on encoding

  • Loading branch information...
gettalong committed Aug 21, 2013
1 parent 8cb00d9 commit 6dac5b1244dce806053927f3478b41f81ad2ebc2
Showing with 3 additions and 1 deletion.
  1. +3 −1 data/kramdown/document.html
@@ -1,7 +1,9 @@
<!DOCTYPE html>
<html>
<head>
- <meta charset="UTF-8">
+ <% if @converter.root.options[:encoding] %>
+ <meta http-equiv="Content-type" content="text/html;<%= @converter.root.options[:encoding] %>">
+ <% end %>
<%
extend ::Kramdown::Utils::Html
title = ''

0 comments on commit 6dac5b1

Please sign in to comment.