Skip to content

Commit e91f082

Browse files
committed
change default backlink symbols
1 parent e129efe commit e91f082

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: tocr
22
Title: TOC Generation for (R) Markdown Documents
3-
Version: 0.1.9000
3+
Version: 0.1.9001
44
Authors@R:
55
person(given = "Salim",
66
family = "Brüggemann",

Rmd/tocr.Rmd

+3-2
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,8 @@ old_toc_id <- toc_id
579579

580580
**Remarks:**
581581

582-
- Regarding `add_title = FALSE`: A possible alternative solution to still be able to add backlinks by using style attribute `"display:none;"` for the title doesn't seem to work, at least not on GitHub (it's still visible)).
582+
- Regarding `add_title = FALSE`: A possible alternative solution to still be able to add backlinks by using style attribute `"display:none;"` for the title
583+
doesn't seem to work, at least not on GitHub (it's still visible)).
583584

584585
```{r}
585586
#' Add a table of contents (TOC) to an (R) Markdown document
@@ -653,7 +654,7 @@ add_toc <- function(md,
653654
title = "Table of contents",
654655
title_tier = min_tier,
655656
add_backlinks = add_title,
656-
backlink_strings = c("\U1F805", "\U1F807"),
657+
backlink_strings = c("\u2191", "\u2193"),
657658
backlink_position = c("before", "after"),
658659
listing_style = c("-", "*", "ordered", "indented"),
659660
toc_id = "toc",

0 commit comments

Comments
 (0)