I was surprised to find that in markdown cells, typing "something like this"
renders straight-quotes; same deal for apostrophes. These are especially noticeable given just how curly the body font makes curly quotes. Can the site instead convert to HTML using smart quotes by default?
We donāt currently support automatic typographic quotes, but weāre planning on making some upgrades to our built-in Markdown tagged template literal (md
) in the nearish future. One of the challenges is that we donāt want to change the behavior of existing notebooks.
If you donāt mind adding an import to your notebook, you can import a more full-featured Markdown parser that supports typographic quote conversion. For example, markdown-it:
Please donāt ever make the standard md
template apply this kind of āhelpfulā feature. Someone who wants smart quotes can easily either type them explicitly (either by setting their computer to do it automatically, or by using an explicit key binding for it), or can find their own javascript code to do it to their templates, but often straight quotes are desired and needing to go to extra effort to avoid someoneās clever DWIM features when they go wrong is always a huge pain.
I guess thereās also the problem that quotation marks are dependent on the language.
While I would have loved some built-in typographical helpers, I donāt see how they could be added without also adding full customization support.
Thatās great, thanks! I think Iāll stick with the default parser for now because, perversely, Iām using some raw HTML embedded in the Markdownā¦
But in the future, using an import like this seems simple and effective.