Skip to content

Commit f30845b

Browse files
committed
css for downlit links
1 parent b51718e commit f30845b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/resources/formats/html/bootstrap/_bootstrap-rules.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,6 +1621,12 @@ p.subtitle {
16211621
margin-bottom: 0.5em;
16221622
}
16231623

1624+
// downlit links
1625+
code a:any-link {
1626+
color: inherit;
1627+
text-decoration-color: $gray-600;
1628+
}
1629+
16241630
// This is a sentinel value that renderers can use to determine
16251631
// whether the theme is dark or light
16261632
@if (quarto-color.blackness($body-bg) > $code-block-theme-dark-threshhold) {

src/resources/rmd/rmd.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
postprocess <- function(input, format, output, preserved_chunks) {
3535

3636
# check for html output
37-
isHTML <- is_html_output(format)
37+
isHTML <- knitr::is_html_output(
38+
format$pandoc$to,
39+
c("markdown", "epub", "gfm", "commonmark", "commonmark_x", "markua")
40+
)
3841

3942
# bail if we don't have any perserved chunks and aren't doing code linking
4043
code_link <- isHTML && isTRUE(format$render$`code-link`)

0 commit comments

Comments
 (0)