./textproc/R-markdown, Render Markdown with the C Library Sundown

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.7, Package name: R-markdown-1.7, Maintainer: pkgsrc-users

Markdown is a plain-text formatting syntax that can be converted to
XHTML or other formats. This package provides R bindings to the
Sundown markdown rendering library.


Required to run:
[math/R] [mail/R-mime]

Required to build:
[pkgtools/cwrappers]

Master sites: (Expand)


Version history: (Expand)


CVS history: (Expand)


   2023-06-03 16:10:00 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(textproc/R-markdown) Updated 1.5 to 1.7

# CHANGES IN markdown VERSION 1.7

- The `file` argument of `mark()` will be treated as a file path only
  if the file exists and the value is not wrapped in
  `I()`. 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).

# CHANGES IN markdown VERSION 1.6

- Added support for footnotes, fenced `Div`s, section numbers, `{}`
  attributes for images/headings/fenced `Div`s, and appendices. See
  `vignette('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 want
  `mark()` to return text output when the input is a file, you may
  specify the argument `output = NULL`.

- The Markdown option `base64_images` has been renamed to
  `embed_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. See `vignette('intro', package = 'markdown')` for details.

- Removed the option `standalone` from the list of Markdown
  options. Please use the argument `template = TRUE/FALSE` of `mark()`
  instead. The option `standalone = TRUE` was equivalent to `template
  = 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 `mathjax` option to `js_math` to allow for other JS math
  libraries. The default library was changed from MathJax to KaTeX. To
  continue using MathJax, you may set `js_math: mathjax`.

- Removed the option `mathjax_embed` from the list of Markdown
  options. To embed the MathJax library, enable `"https"` in the
  `embed_resources` option instead. Note that only MathJax v3 can be
  partially embedded, and lower versions cannot.

- Renamed the option `highlight_code` to `js_highlight`, and added
  support for an alternative syntax highlighting JS library Prism.js,
  which became the default. To continue using the old default
  `highlight.js`, you may set the `js_highlight` option to
  `highlight`.

- 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 `github` to
  `xcode`.
   2023-03-12 10:52:10 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(textproc/R-markdown) Updated 1.1 to 1.5

# CHANGES IN markdown VERSION 1.5

- Values of meta variables `title`, `author`, and `date` (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 knitting `Rmd` documents 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.

# CHANGES IN markdown VERSION 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()`.

# CHANGES IN markdown VERSION 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()` and `markdownToHTML()` have been
  renamed to `mark()` and `mark_html()`, respectively. The old names
  are still kept in this package for backward-compatibility.

- Removed the arguments `stylesheet` and `fragment.only` in
  `mark_html()`. For `stylesheet`, please use the argument `meta =
  list(css = ...)` to provide the CSS stylesheet. For `fragment.only`,
  please use `mark_html(template = FALSE)` or `mark_html(options =
  '-standalone')` instead of `fragment.only = TRUE`. Currently these
  old arguments are still accepted internally, but may be deprecated
  and dropped in the long run.

- The `file` argument of `mark()` and `mark_html()` can also take a
  character vector of Markdown text now.

- Removed functions `rendererExists()`, `rendererOutputType()`, and
  `registeredRenderer()`. They were primarily for internal use.

- Deprecated the function `markdownExtensions()`. All extensions
  should be specified via the `options` argument of functions like
  `mark()`, e.g., `mark(options = '+table+tasklist')`. See all options
  on the help page `?markdown::markdown_options`.

- Renamed `markdownHTMLOptions()` to `markdown_options()`.

# CHANGES IN markdown VERSION 1.2

- Fixed the warnings "a function declaration without a prototype is
  deprecated in all versions of C" (#94).
   2021-10-26 13:23:42 by Nia Alarie | Files touched by this commit (1161)
Log message:
textproc: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Unfetchable distfiles (fetched conditionally?):
./textproc/convertlit/distinfo clit18src.zip
   2021-10-07 17:02:49 by Nia Alarie | Files touched by this commit (1162)
Log message:
textproc: Remove SHA1 hashes for distfiles
   2021-06-06 17:44:34 by Makoto Fujiwara | Files touched by this commit (1)
Log message:
(textproc/R-markdown) Add missing one DEPENDS (R-xfun)
   2021-06-05 09:17:09 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
(textproc/R-markdown) Updated 1.0 to 1.1

     CHANGES IN markdown VERSION 1.1
MAJOR CHANGES

  o renderMarkdown() and markdownToHTML() will signal an error if the input file
  is not encoded in "UTF-8".
   2019-08-08 21:53:58 by Brook Milligan | Files touched by this commit (189) | Package updated
Log message:
Update all R packages to canonical form.

The canonical form [1] of an R package Makefile includes the
following:

- The first stanza includes R_PKGNAME, R_PKGVER, PKGREVISION (as
  needed), and CATEGORIES.

- HOMEPAGE is not present but defined in math/R/Makefile.extension to
  refer to the CRAN web page describing the package.  Other relevant
  web pages are often linked from there via the URL field.

This updates all current R packages to this form, which will make
regular updates _much_ easier, especially using pkgtools/R2pkg.

[1] http://mail-index.netbsd.org/tech-pkg/2019/08/02/msg021711.html
   2018-07-28 16:40:53 by Brook Milligan | Files touched by this commit (126)
Log message:
Remove MASTER_SITES= from individual R package Makefiles.

Each R package should include ../../math/R/Makefile.extension, which also
defines MASTER_SITES.  Consequently, it is redundant for the individual
packages to do the same.  Package-specific definitions also prevent
redefining MASTER_SITES in a single common place.