Mikhail Morfikov
Mikhail Morfikov

Reputation: 195

How to disable typography in github pages?

Is there a way to disable typography in github pages?

For instance I want '...' in the output instead of ‘…’ .

Upvotes: 1

Views: 110

Answers (1)

VonC
VonC

Reputation: 1326746

Since Jekyll uses Kramdown, that parser will, as documented in syntax / typographic symbols, replace ... with an ellipsis (like this )

Maybe you can try and use the typographic_symbols Jekyll option which comes from issue 472

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

If not, you would need to define a filter, to replace {{ content }} with what you want.

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

The OP Mikhail Morfikov also suggests in the comments:

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

Upvotes: 1

Related Questions