嵌入在 rmarkdown 文档中的 markdown 表格中的列宽

column widths in markdown tables embedded in rmarkdown documents

是否可以在 Rmarkdown 中使用 markdown tables 设置列宽?当第 2 列中的文本变长时,table 在第 1 列和第 2 列之间平均分配。我查看了看起来像 的答案,但似乎没有什么是完全正确的。

与版本 2 相比,我想要更接近版本 1 的内容。

---
title: "Untitled"
output: 
  bookdown::html_document2:
    toc: true
    toc_float: true
    toc_depth: 1
    code_folding: show
    theme: default
    highlight: tango
---

# Version 1

| Something | Else |
|:--|:--|
| Short | This is longer this is longer this is longer  |
| Short | |

# Version 2

| Something | Else |
|:--|:--|
| Short | This is longer this is longer this is longer this is longer this is longer this is longer |
| Short | |

它应该如何与许多解析器一起工作的一种简单方法是在您的 table 定义中使用不同的相对宽度,例如:

| Something | Else |
|---------------|------------------------------------------------------------------------------------------------------|
| Short | This is longer this is longer this is longer this is longer this is longer this is longer this is longer this is longer this is longer this is longer this is longer this is longer |
| Short | |