Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sections named header are centered in html_vignette #1742

Closed
3 tasks done
EmilHvitfeldt opened this issue Dec 17, 2019 · 2 comments
Closed
3 tasks done

Sections named header are centered in html_vignette #1742

EmilHvitfeldt opened this issue Dec 17, 2019 · 2 comments

Comments

@EmilHvitfeldt
Copy link

EmilHvitfeldt commented Dec 17, 2019

Found this peculiar thing where when using html_vignette if you name a section "header" it will center it along with the section context. This will only be the case for the first section named header.

---
title: "test"
output: rmarkdown::html_vignette
---

## This is a title

This is normal text.

## header

This is also normal text.

## New header

and this is also text.

## header

and this is also text.

## New header

and this is also text.

Screen Shot 2019-12-17 at 10 26 18 AM

R version 3.6.0 (2019-04-26)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.6, RStudio 1.2.1522

Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8

Package version:
  base64enc_0.1.3    digest_0.6.23      evaluate_0.14      glue_1.3.1        
  graphics_3.6.0     grDevices_3.6.0    highr_0.8          htmltools_0.4.0   
  jsonlite_1.6       knitr_1.26.1       magrittr_1.5       markdown_1.1      
  methods_3.6.0      mime_0.7           Rcpp_1.0.3         rlang_0.4.2.9000  
  rmarkdown_2.0      stats_3.6.0        stringi_1.4.3      stringr_1.4.0.9000
  tinytex_0.18       tools_3.6.0        utils_3.6.0        xfun_0.11         
  yaml_2.2.0        

Pandoc version: 2.5

By filing an issue to this repo, I promise that

  • I have fully read the issue guide at https://yihui.org/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('rmarkdown'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/rmarkdown').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

@yihui yihui closed this as completed in 26cc3b1 Dec 17, 2019
@yihui
Copy link
Member

yihui commented Dec 17, 2019

Should be fixed now. Thanks for the report!

@github-actions
Copy link

github-actions bot commented Nov 3, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants