Open
Description
This should be working IMO
---
title: "Untitled"
date: "`r Sys.Date()`"
output:
bookdown::html_document2:
base_format: distill::distill_article
pandoc_args: ["--number-sections"]
---
# heading 1 {#myheading1}
See section \@ref(myheading1)
Reported in rstudio/distill#287
Currently it is not because distill will generate this HTML
"<h1 data-number=\"1\" id=\"myheading1\"><span class=\"header-section-number\">1</span> heading 1</h1>"
which bookdown regex does not currently support. This should be solve when we'll change how to solve reference (without regex) but for now I guess just modifying the regex will work.
Lines 706 to 719 in 0098721
Line 703 in 0098721