Skip to content

Commit

Permalink
Wrap section descriptions in <div>, not <p> (r-lib#2446)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley authored and SebKrantz committed Jun 1, 2024
1 parent ada0681 commit 1f9adf0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# pkgdown (development version)

* `build_article_index()` and `build_reference_index()` use an improved BS5 template that correctly wraps each section description in a `<div>`, rather than a `<p>`. This eliminates an empty pargraph tag that preceded each section description (#2352).
* `build_news()` now warns if it doesn't find any version headings, suggesting that that `NEWS.md` is structured incorrectly (#2213).
* `build_article()` gains a new `new_process` argument which allows to build a vignette in the current process for debugging purposes. We've also improved the error messages and tracebacks if an article fails to build, hopefully also making debugging easier (#2438).
* Preview links now work once again (#2435).
Expand Down
2 changes: 1 addition & 1 deletion inst/BS5/templates/content-article-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1>{{{pagetitle}}}</h1>
{{#sections}}
<div class="section {{class}}">
<h3>{{{title}}}</h3>
<p class="section-desc">{{{desc}}}</p>
<div class="section-desc">{{{desc}}}</div>

<dl>
{{#contents}}
Expand Down
2 changes: 1 addition & 1 deletion inst/BS5/templates/content-reference-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1>{{{pagetitle}}}</h1>
{{#rows}}<div id="{{slug}}" class="section level2">
{{#title}}<h2>{{{.}}}</h2>{{/title}}
{{#subtitle}}<h3>{{{.}}}</h3>{{/subtitle}}
{{#desc}}<p class="section-desc">{{{desc}}}</p>{{/desc}}
{{#desc}}<div class="section-desc">{{{desc}}}</div>{{/desc}}

{{#topics}}<dl>
<dt>
Expand Down

0 comments on commit 1f9adf0

Please sign in to comment.