quarto-dev / quarto-dev/quarto

Markdown Table multicolumn header removed when switching to visual editor from source

Open
#100 0 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.