quarto-dev / quarto-dev/quarto
Markdown Table multicolumn header removed when switching to visual editor from source
Open
@jjallaire is already working on this.
Since Sep 22, 2022.
bug
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Description
Bug description
When switching between visual editor and source editor the formatting of markdown tables gets changed. Particularly when there is a multicolumn header it is removed and a | is placed in make the columns not multicolumn.
In source mode:
---
title: "Try turning on Visual"
format: html
---
+------------------------------------+--------------------------------------------+--------------+
| | Decision (Conclusion from hypothesis test) |
+====================================+============================================+==============+
| True Population | Reject $H_o$ | Accept $H_o$ |
+------------------------------------+--------------------------------------------+--------------+
| Means are equal ($H_o$ is true) | $\alpha$ | 1 - $\alpha$ |
+------------------------------------+--------------------------------------------+--------------+
| Means are unequal ($H_o$ is false) | 1 - $\beta$ | $\beta$ |
+------------------------------------+--------------------------------------------+--------------+
After switching to visual mode and back
---
title: "Try turning on Visual"
format: html
---
| | Decision (Conclusion from hypothesis test) | |
|-------------------------|-------------------------------|----------------|
| True Population | Reject $H_o$ | Accept $H_o$ |
| Means are equal ($H_o$ is true) | $\alpha$ | 1 - $\alpha$ |
| Means are unequal ($H_o$ is false) | 1 - $\beta$ | $\beta$ |
Rstudio version: "Spotted Wakerobin" Release (7872775e, 2022-07-22) for Windows
Checklist
- Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- Please format your issue so it is easier for us to read the bug report.
- Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- Please document the operating system you're running. If on Linux, please provide the specific distribution.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.