Jekyll post HTML 格式不正确

Jekyll post HTML not getting formatted correctly

我正在使用 GIT HUB 页面生成我的博客,博客中的一些帖子在工作时似乎没有正确呈现。

所有格式和显示都丢失了,页面最终显示实际的 md 文件而不是 html。 您可以在 link 此处 http://pratikvasani.github.io/archive/2015/01/16/Valuetype-or-reference-type/

查看问题

有问题的 .md 文件在这里 https://github.com/pratikvasani/pratikvasani.github.io/blob/master/_posts/2015-01-16-Valuetype-or-reference-type.md

---
layout:     post
title:      Value type
date:       2015-12-25
summary:    Value types.
categories: MVC6 Localization 
---

This looks like a amateur question , but don't be surprised if you get the answer wrong.
There is more to understand in value types and reference types than saying


Value types are data types which are stored on the stack while Reference types are stored on the Heap.

While this is a very popular statement which is used to differentiate value types and reference types , it is not entirely true.
....

谁能告诉我怎么了?我已经检查了 .md 文件的格式及其正确的 .编码也很好。

文件开头有一个不可打印的字符。 我创建了一个 PR.

通过比较 github 处理降价的方式,您可以很容易地注意到它:problematic fileother post file

您的文件已 UTF-8 with BOM 编码。如您在 Jekyll documentation 中所见,UTF-8 文件必须使用无 BOM 进行编码。

删除 BOM 即可。