Skip to content
New issue

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

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

Already on GitHub? # to your account

simple Markdown table does not work with Rmd files #612

Closed
ogansser opened this issue Apr 14, 2021 · 7 comments
Closed

simple Markdown table does not work with Rmd files #612

ogansser opened this issue Apr 14, 2021 · 7 comments
Labels
question general questions - not an issue reprex needs a minimal reproducible example

Comments

@ogansser
Copy link

simple Marktdown table does not work within Rmd files:

Format Grooviness
HTML Medium
Markdown High

looks like this:

test_table_Rmd

@ogansser ogansser changed the title simple Marktdown table down not work with Rmd files simple Marktdown table does not work with Rmd files Apr 14, 2021
@yihui yihui added the reprex needs a minimal reproducible example label Apr 14, 2021
@yihui
Copy link
Member

yihui commented Apr 14, 2021

I can't reproduce it. This is the third time that we remind you of providing a reproducible example (first #608, second #610) when filing bug reports. Please do not delete the issue guide when filing issues and please follow the issue guide. Thanks!

image

@yihui yihui changed the title simple Marktdown table does not work with Rmd files simple Markdown table does not work with Rmd files Apr 14, 2021
@ogansser
Copy link
Author

ogansser commented Apr 14, 2021

OK, I try it:

 blogdown::check_site()
― Running a series of automated checks for your blogdown website project...
-------------------------------------------------------------------------------
○ A successful check looks like this.
● [TODO] A check that needs your attention looks like this.
| Let's check out your blogdown site!
-------------------------------------------------------------------------------
― Checking config.yaml
| Checking "baseURL" setting for Hugo...
○ Found baseURL = "https://gansser.de/"; nothing to do here!
| Checking "ignoreFiles" setting for Hugo...
● [TODO] Set "ignoreFiles" to ["\\.Rmd$", "\\.Rmarkdown$", "_cache$", "\\.knit\\.md$", "\\.utf8\\.md$"]
| Checking setting for Hugo's Markdown renderer...
| You are using the Markdown renderer 'goldmark'.
● [TODO] Allow goldmark to render raw HTML by adding this setting to config.yaml (see https://github.com/rstudio/blogdown/issues/447 for more info):

markup:
  goldmark:
    renderer:
      unsafe: true

> Do you want blogdown to set this for you? (y/n) y
― Check complete: config.yaml

― Checking .gitignore
● [TODO] .gitignore was not found. You may want to add this.
― Checking Hugo
| Checking Hugo version...
○ Found 3 versions of Hugo. You are using Hugo 0.82.0.
| Checking .Rprofile for Hugo version used by blogdown...
○ blogdown is using Hugo 0.82.0 to build site locally.
― Check complete: Hugo

― Checking netlify.toml...
○ Found HUGO_VERSION = 0.82.0 in [build] context of netlify.toml.
| Checking that Netlify & local Hugo versions match...
○ It's a match! Blogdown and Netlify are using the same Hugo version (0.82.0).
| Checking that Netlify & local Hugo publish directories match...
○ Good to go - blogdown and Netlify are using the same publish directory: public
― Check complete: netlify.toml

― Checking content files
| Checking for validity of YAML metadata in posts...
○ All YAML metadata appears to be syntactically valid.
| Checking for previewed content that will not be published...
○ Found 0 files with future publish dates.
○ Found 0 files marked as drafts.
| Checking your R Markdown content...
○ All R Markdown files have been knitted.
○ All R Markdown output files are up to date with their source files.
| Checking for .html/.md files to clean up...
○ Found 0 duplicate .html output files.
○ Found 0 incompatible .html files to clean up.
| Checking for the unnecessary 'content/' directory in theme...
○ Great! Your theme does not contain the content/ directory.
― Check complete: Content

Warnmeldung:
In readLines(con) : unvollständige letzte Zeile in 'config.yaml' gefunden

xfun::session_info('blogdown')
R version 4.0.5 (2021-03-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042), RStudio 1.4.1103

Locale: LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252    LC_MONETARY=German_Germany.1252 LC_NUMERIC=C                    LC_TIME=German_Germany.1252    

Package version:
  base64enc_0.1.3   BH_1.75.0.0       blogdown_1.2      bookdown_0.21     digest_0.6.27     evaluate_0.14     glue_1.4.2        graphics_4.0.5    grDevices_4.0.5   highr_0.8         htmltools_0.5.1.1
  httpuv_1.5.5      jsonlite_1.7.2    knitr_1.31        later_1.1.0.1     magrittr_2.0.1    markdown_1.1      methods_4.0.5     mime_0.10         promises_1.2.0.1  R6_2.5.0          Rcpp_1.0.6       
  rlang_0.4.10      rmarkdown_2.7     servr_0.21        stats_4.0.5       stringi_1.5.3     stringr_1.4.0     tinytex_0.31      tools_4.0.5       utils_4.0.5       xfun_0.22         yaml_2.2.1       

Hugo version: 0.82.0

@ogansser
Copy link
Author

test_table_Rmd

@yihui
Copy link
Member

yihui commented Apr 14, 2021

Perhaps you don't know what a "reproducible example" means... It means an example that other people can run to reproduce your problem. So far all we have here is a table with a screenshot. To be able to reproduce your problem, we need the source document or project. At the bare minimum, we need to at least be able to visit the problematic web page. If you have the website source on Github, that's all we need. If you don't, please at least provide a URL to the problematic web page.

@ogansser
Copy link
Author

@yihui yihui added the question general questions - not an issue label Apr 14, 2021
@yihui
Copy link
Member

yihui commented Apr 14, 2021

This is a CSS question. If you right click on the table header and inspect the CSS, you'll see that the table header uses the header class, and your theme happens to have defined CSS rules for this class:

Screen Shot 2021-04-14 at 1 53 15 PM

The display attribute affected your table header, and you need to override this rule for your table, e.g., with

tr.header {
    display: table-row;
}

Please consider asking further questions in public forums such as RStudio Community or Stack Overflow in the future, as indicated in the issue guide. We don't have enough resources to answer general website questions such as CSS problems. Please also do not delete the issue guide when filing issues here next time. Thanks!

@yihui yihui closed this as completed Apr 14, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question general questions - not an issue reprex needs a minimal reproducible example
Projects
None yet
Development

No branches or pull requests

2 participants