Skip to content

tables printed via kable(): double negative signs -- are transformed into symbol endash (), being barely differentiable from -. Why/How can I force a representation of --? #10384

Answered by cderv
Gewerd-Strauss asked this question in Q&A
Discussion options

You must be logged in to vote

This is again another occurence of the smart extension. It is already discussed for other use case

In your situation, this is probably because kable() will output Markdown table, and then Markdown is parsed by Pandoc with this extension activated which will conside -- as en-dashes.

The way you create the table right now is not protected against any markdown parsing. If you had y-axis-tilt-gfa-5-*1* for example the *1*, the output would have <em> for emphasize, as * means someting in Markdown.

So you need to account for that when you have special content in your table. Some solution

  • Opting out smart extension, but this will apply to all your document.
  • C…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gewerd-Strauss
Comment options

Answer selected by Gewerd-Strauss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
tables Issues with Tables including the gt integration html Issues with HTML and related web technology (html/css/scss)
2 participants