Skip to content

Commit

Permalink
Release v0.3.1
Browse files Browse the repository at this point in the history
Merge pull request #24 from riccardoporreca/hotfix/23-quote-title
  • Loading branch information
riccardoporreca authored May 4, 2020
2 parents 6bddc27 + 8ac6948 commit 1908541
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rmdgallery
Title: R Markdown Website Gallery Generator
Version: 0.3.0
Version: 0.3.1
Authors@R:
person(given = "Riccardo",
family = "Porreca",
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# rmdgallery 0.3.1

## Patch release

- The provided templates now support `title` field values that would require quoting or escaping (#23).

# rmdgallery 0.3.0

## New features
Expand Down
3 changes: 2 additions & 1 deletion inst/templates/embed-html.Rmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: {{title}}
title: >
{{title}}
params:
content: NULL
gallery_config: NULL
Expand Down
3 changes: 2 additions & 1 deletion inst/templates/embed-script.Rmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: {{title}}
title: >
{{title}}
params:
content: NULL
gallery_config: NULL
Expand Down
3 changes: 2 additions & 1 deletion inst/templates/embed-url.Rmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: {{title}}
title: >
{{title}}
params:
content: NULL
gallery_config: NULL
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-templates.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ common_meta <- list(
include_before = '<hr><a href="https://example.com">before - Author: {{author}}</a><hr/>',
include_after = '{{htmltools::tagList(htmltools::hr(), "after -", title, htmltools::hr())}}'
),
title = 'A "Foo" & Bar',
title = 'A: "Foo" & Bar\'s',
author = "Me"
)

Expand Down

0 comments on commit 1908541

Please sign in to comment.