In getting started you saw what the built-in styling looks like (both the default and the alternative). In this article you’ll see how to disable the built-in styling and specify your own.
Setup
Initialize Wikipedia Preview without styles by including the following inline code anywhere in your R Markdown document:
Note: If you prefer to have a designated chunk instead of inline code, you can initialize by including the following chunk:
Then you can define your own wiki
CSS class from scratch, rather than overriding any built-in rules:
Example
Source:
You can link to [Wikipedia](https://www.wikipedia.org/) and
you can link to the article about
[Wikipedia](https://en.wikipedia.org/wiki/Wikipedia){.wiki}
Output:
You can link to Wikipedia and you can link to the article about Wikipedia
Further reading
To learn more about writing CSS, refer to blogdown: Creating Websites with R Markdown (2021) by Yihui Xie, Amber Thomas, Alison Presmanes Hill.