如何禁用 github 页面中的排版?

How to disable typography in github pages?

有没有办法在 github 页中禁用排版?

例如我想在输出中使用 '...' 而不是 ‘…’ .

因为Jekyll uses Kramdown, that parser will, as documented in syntax / typographic symbols, replace ... with an ellipsis(像这样

也许你可以尝试使用 typographic_symbols Jekyll option which comes from issue 472

--typographic_symbols "{hellip: ...}"

如果没有,您需要 define a filter,用您想要的替换 {{ content }}

{% assign t = t | replace: '…', '...' }

OP Mikhail Morfikov also suggests :

kramdown:
  ...
  typographic_symbols: { hellip: ... , mdash: --- , ndash: -- , laquo: "<<" , raquo: ">>" , laquo_space: "<< " , raquo_space: " >>" }
  smart_quotes: apos,apos,quot,quot