R 降价缩进问题

R markdown indentation issue

我一直在寻找解决方案。每当我在中间添加 table 时,缩进都会发生变化,正如您在图片中看到的那样。不知道哪里做错了

title: "Markdown_file"
author: "MZ"
date: "10/27/2019"
output: pdf_document
---


1.  abc dd dd 
    (a) adb
    (b) dwd

|    |   A| B |  C | 
|---:|---:|--:|---:|
|a   |  1 | 2 |  3 |
|b   |  1 | 3 |  3 |
|c   |  1 | 3 |  3 |

    (c) ddd
    (d) dddw

这是我添加 table 后的样子。可以看到,没有排队

这确实是一个 Markdown 问题,不是 RMarkdown 特有的,在这里得到解答:https://superuser.com/a/1409106。这个想法是你缩进你的 table,并且不要在它后面包含一个空行:

---
title: "Markdown_file"
author: "MZ"
date: "10/27/2019"
output: pdf_document
---


1.  abc dd dd 
    (a) adb
    (b) dwd

    |    |   A| B |  C | 
    |---:|---:|--:|---:|
    |a   |  1 | 2 |  3 |
    |b   |  1 | 3 |  3 |
    |c   |  1 | 3 |  3 |
    (c) ddd
    (d) dddw