Skip to content

includeMarkdown doesnot render the <id> of the headers. #380

Description

@ShixiangWang

I want to create a TOC for a markdown used in the shiny. However, the <id> is not generated. I followed the markdown grammar to add the <id> manually not work.

> includeMarkdown(set_md_path("usage.md"))

....

<h2>7. Global Setting Page {#7-global-setting-page}</h2>
<p>This page provides global options for controlling access to underlying data. By setting default options, we try to minimize the users initial learning cost and ensure that the results displayed on the website are biologically meaningful. For example, we only analyze sample data related to immunotherapy by default, in order to match the core goals of our website, and to remove data bias (confusion caused by different treatments in the data) that first-time users may not see. In addition, we have set up default configuration for CircRNA expression using appropriate CPM quantification. Users can adjust these global options according to their own needs after becoming familiar with the website, in order to facilitate exploring more possibilities of this website.</p>
<img src="https://cdn.jsdelivr.net/gh/shixiangwang/cdn/img/7.PNG" alt="snapshot of Setting Page" style="zoom:50%;" />

You can see that

## 7. Global Setting Page {#7-global-setting-page}

is rendered as

<h2>7. Global Setting Page {#7-global-setting-page}</h2>

Not the same as https://www.markdownguide.org/extended-syntax/#heading-ids.

So what should I do to achieve this?

Best,

Shixiang

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions