Skip to content

Commit cdbb911

Browse files
committed
get rid of the hack that prevents ~foo~ from being converted to <del>
1 parent 1830e01 commit cdbb911

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: litedown
22
Type: Package
33
Title: A Lightweight Version of R Markdown
4-
Version: 0.6.3
4+
Version: 0.6.4
55
Authors@R: c(
66
person("Yihui", "Xie", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666", URL = "https://yihui.org")),
77
person("Tim", "Taylor", role = "ctb", comment = c(ORCID = "0000-0002-8587-7113")),
@@ -21,7 +21,7 @@ Description: Render R Markdown to Markdown (without using 'knitr'), and Markdown
2121
Depends: R (>= 3.2.0)
2222
Imports:
2323
utils,
24-
commonmark (>= 1.9.1),
24+
commonmark (>= 1.9.5),
2525
xfun (>= 0.51)
2626
Suggests:
2727
rbibutils,

R/mark.R

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,6 @@ mark = function(input, output = NULL, text = NULL, options = NULL, meta = list()
178178
sprintf('!%s!', x)
179179
})
180180
}
181-
# TODO: remove this after commonmark > 1.9.2 is on CRAN
182-
# disallow single tilde for <del> (I think it is an awful idea in GFM's
183-
# strikethrough extension to allow both single and double tilde for <del>)
184-
find_prose()
185-
text[p] = match_replace(text[p], r3, function(x) {
186-
gsub('^~|~$', '\\\\~', x)
187-
})
188181
# add line breaks before/after fenced Div's to wrap ::: tokens into separate
189182
# paragraphs or code blocks
190183
text[p] = sub('^([ >]*:::+ )([^ {]+)$', '\\1{.\\2}', text[p]) # ::: foo -> ::: {.foo}

0 commit comments

Comments
 (0)