Skip to content

Commit 72e3bf0

Browse files
Correct the typo in markdown-chunk.R (#160)
* Update markdown-chunk.R Correct the typo * Update markdown-chunk.R correct the typo * `air format .` --------- Co-authored-by: Tomasz Kalinowski <kalinowskit@gmail.com>
1 parent 054d0ab commit 72e3bf0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

R/markdown-chunk.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ markdown_position_headings <- function(
413413

414414
df |>
415415
mutate(
416-
nearest_preceeding_heading_level = md_headings$level[
416+
nearest_preceding_heading_level = md_headings$level[
417417
findInterval(
418418
position,
419419
md_headings$start,
@@ -426,7 +426,7 @@ markdown_position_headings <- function(
426426
],
427427
max_applicable_level = coalesce(
428428
start_of_heading_level - 1L,
429-
nearest_preceeding_heading_level,
429+
nearest_preceding_heading_level,
430430
99L
431431
),
432432
heading = map2(heading, max_applicable_level, \(h, l) {
@@ -449,7 +449,7 @@ utils::globalVariables(c(
449449
"heading_start",
450450
"closest",
451451
"start_of_heading_level",
452-
"nearest_preceeding_heading_level",
452+
"nearest_preceding_heading_level ",
453453
"heading",
454454
"max_applicable_level"
455455
))

0 commit comments

Comments
 (0)