Recent Releases of markdown
markdown - markdown 2.0
- The core function
mark()is a thin wrapper oflitedown::mark()now. Users are recommended to call litedown directly instead of through the wrapper.
- R
Published by yihui 11 months ago
markdown - markdown 1.13
Cleaned
sourceposrecords when they come from metadata (thanks, @dmurdoch, #111).The markdown package is in the maintenance-only mode now. It is feature-complete, and will receive no updates except for fixing CRAN problems. New development will continue only in litedown: https://github.com/yihui/litedown.
- R
Published by yihui over 1 year ago
markdown - markdown 1.12
Provided three internal functions
html_document,html_vignette, andpdf_documentas compatibility layers to functions of the same names in the rmarkdown package (thanks, @jangorecki, #108). See the appendix invignette('intro', package = 'markdown')for details.The default HTML template no longer wraps meta variables
include-beforeandinclude-afterinside<div></div>, because their values may contain incomplete HTML tags, e.g.,include-before = '<div>'andinclude-after = '</div>'.
- R
Published by yihui about 2 years ago
markdown - markdown 1.11
- Verbatim code blocks of the form
```{lang attr1 attr2 ...}were not correctly rendered.
- R
Published by yihui over 2 years ago
markdown - markdown 1.10
- Raw blocks (
```{=lang}) were broken in the previous version when the support for code block attributes was added.
- R
Published by yihui over 2 years ago
markdown - markdown 1.9
Added support for attributes on fenced code blocks, e.g.,
```{.lang .class2 #id attr="value"}(thanks, @thothal, #106).Fixed the bug that the option
number_sections: truedoesn't work for HTML output when then input contains certain Unicode characters (thanks, @fyuniv, #104).Added support for rendering HTML Widgets such as ggplotly (thanks, @fyuniv, #105).
- R
Published by yihui over 2 years ago
markdown - markdown 1.8
- Fixed the superfluous warning about path lengths in
mark_html()(thanks, @kenjisato, #103).
- R
Published by yihui over 2 years ago
markdown - markdown 1.7
The
fileargument ofmark()will be treated as a file path only if the file exists and the value is not wrapped inI(). Previously, it would be treated as a file path when it has a file extension, which could lead to confusing errors like #100 (thanks, @LukasWallrich).When there are emojis in the text,
mark()may fail to identify and embed web resources (thanks, @tdhock, yihui/knitr#2254).
- R
Published by yihui almost 3 years ago
markdown - markdown 1.6
Added support for footnotes, fenced
Divs, section numbers,{}attributes for images/headings/fencedDivs, and appendices. Seevignette('intro', package = 'markdown')for details.A lot of enhancements to the HTML slides format. See
vignette('slides', package = 'markdown')for details.Added
vignette('article', package = 'markdown')to demonstrate how to write an HTML article.If the input to
mark()is a file, the output will also be a file by default. Previously the output would be text. If you wantmark()to return text output when the input is a file, you may specify the argumentoutput = NULL.The Markdown option
base64_imageshas been renamed toembed_resources. This option can take two possible values,"local"and"https", meaning whether to embed local and/or web (https) resources. You can specify none, either, or both of them. Seevignette('intro', package = 'markdown')for details.Removed the option
standalonefrom the list of Markdown options. Please use the argumenttemplate = TRUE/FALSEofmark()instead. The optionstandalone = TRUEwas equivalent totemplate = TRUE.Added the option
auto_identifiers(enabled by default) to automatically add IDs to headings, e.g.,# Hello world!will be converted to<h1 id="hello-world">Hello world!</h1>. You can certainly override the automatic ID by providing an ID manually via the{#id}attribute, e.g.,# Hello world! {#hello}.Renamed the
mathjaxoption tojs_mathto allow for other JS math libraries. The default library was changed from MathJax to KaTeX. To continue using MathJax, you may setjs_math: mathjax.Removed the option
mathjax_embedfrom the list of Markdown options. To embed the MathJax library, enable"https"in theembed_resourcesoption instead. Note that only MathJax v3 can be partially embedded, and lower versions cannot.Renamed the option
highlight_codetojs_highlight, and added support for an alternative syntax highlighting JS library Prism.js, which became the default. To continue using the old defaulthighlight.js, you may set thejs_highlightoption tohighlight.The default version of MathJax has been changed from v2 to v3.
The default version of highlight.js has been changed from 11.6.0 to 11.7.0, and the default style has been switched from
githubtoxcode.
- R
Published by yihui almost 3 years ago
markdown - markdown 1.5
Values of meta variables
title,author, anddate(if provided) will be transformed to the target output format before they are passed into templates.Fixed the bug that the default CSS was not added to HTML output.
Removed dependency on the mime package.
Added experimental support for HTML slides:
markdown::mark_html(..., meta = list(css = c('default', 'slides'), js = 'slides')). If you prefer knittingRmddocuments in RStudio, you may use the output format:
yaml
output:
markdown::html_format:
meta:
css: [default, slides]
js: [slides]
See https://yihui.org/en/2023/01/minimal-r-markdown/ for a demo.
- R
Published by yihui almost 3 years ago
markdown - markdown 1.4
Empty
\title{}in LaTeX output will be removed (along with\maketitle).highlight.js is loaded from https://www.jsdelivr.com/package/gh/highlightjs/cdn-release by default now. This means more languages are supported (not only R), but also means syntax-highlighting will not work offline at the moment (it will be improved in future).
MathJax failed to load in the previous version. The bug has been fixed now.
Removed the function
markdownExtensions().
- R
Published by yihui almost 3 years ago
markdown - markdown 1.3
Switched the underlying Markdown rendering engine from the C library sundown (which has been deprecated for a decade) to the R package commonmark (thanks, @jeroen, yihui/knitr#1329).
The functions
renderMarkdown()andmarkdownToHTML()have been renamed tomark()andmark_html(), respectively. The old names are still kept in this package for backward-compatibility.Removed the arguments
stylesheetandfragment.onlyinmark_html(). Forstylesheet, please use the argumentmeta = list(css = ...)to provide the CSS stylesheet. Forfragment.only, please usemark_html(template = FALSE)instead offragment.only = TRUE. Currently these old arguments are still accepted internally, but may be deprecated and dropped in the long run.The
fileargument ofmark()andmark_html()can also take a character vector of Markdown text now.Removed functions
rendererExists(),rendererOutputType(), andregisteredRenderer(). They were primarily for internal use.Deprecated the function
markdownExtensions(). All extensions should be specified via theoptionsargument of functions likemark(), e.g.,mark(options = '+table+tasklist'). See all options on the help page?markdown::markdown_options.Renamed
markdownHTMLOptions()tomarkdown_options().
- R
Published by yihui almost 3 years ago