RMarkdown Custom ID Selectors for Dynamic Headers and CSS
Skills:
HTML & CSS80%
Key Takeaways
The video demonstrates how to use RMarkdown custom ID selectors for dynamic headers and CSS, allowing users to create hyperlinks to specific section headings and customize the appearance of their documents.
Full Transcript
continuing on with our our markdown custom CSS video thing one of the cool things you can do with various other things is reference your headers with custom IDs so one thing I like to do in some of my are markdown documents is have hyperlinks to certain section headings especially if it's a very long document so one thing I might do is you know at the bottom of my document I could do like an a tag where the H ref is hash tag test back to top I think this is probably what's gonna work but I know I've done this before even if that's my syntax is incorrect for this but we'll see so one thing I also do have right here is now you see in an our mark 10 document the pound symbol is the comment because this is an in a CSS code chunk it will actually work as you intend and it will actually still function because the Hat the hash tag word is actually the ID selector for CSS but the way we actually give IDs to certain section headings like this I'm just gonna do for section headings I'm sure you can do this for other things like a custom divs yeah we can easily do that for custom divs like in here you can set ID equal to something because in the braces that's actually what's the CSS or the custom options so next to my h1 header here I have our mark down the way we assign a custom ID is through braces pound and then whatever your ID is so in this case test so what I have is that this is saying hey if you have the ID of test the color of your font is orange now I already tested this and it does not change the font color of the actual h1 header I have this one set for for red that's what will change the color for the h1 header what this is doing is this is changing the text of everything inside that h1 head and below it until it hits the next heading so our next h1 heading so let's see what this looks like and knit that so that changes all of the texts underneath this h1 header until the next h1 to orange because two columns right here is that h1 header now I have this little link here that is linked to just the ID selector hashtag test if I click it ah takes you back up to here so in this case you could actually have like say above or next to or something each of your headings a link back to the top I mean if you have it a floating table of contents like in the our markdown out or the HTML output that you can do like this you know that that works just as just as well but say you didn't want that say you just wanted this that's possible as well a lot of different ways you can play with this stuff you could also if you had it in like a book down document you could do this to any place in your book down document which is another use case I found for it is that if you have a link to your appendix if you have a link to another section or a specific reference point or figure you can actually link to it by doing ID selectors so in this case very very good use case of using custom IDs and when you're assigning these IDs to like an h1 header in our markdown its braces pound word and the same thing for the divs over here I think it might be the same or you just do ID equals the same sort of syntax that you normally would do for CSS but I'm not too familiar with this in that case like this is a little bit more confusing if you're gonna do some more custom options I would personally stick with just just write the straight HTML code with the the options in the div tag because it would just be simpler to read and less like obfuscated so in that case I would probably do that but in in in the example yeah custom ID selectors
Original Description
▬▬▬▬▬▬▬▬▬▬ ► CHECK THESE OUT ◀︎▬▬▬▬▬▬▬▬▬▬
📧️ NEWSLETTER: https://bryanjenkstech.ck.page/d4ec0713d5
💬 DISCORD: https://discord.gg/MxCVshN
🗣️ SOCIALS: https://streamerlinks.com/tallguyjenks
▬▬▬▬▬▬▬▬▬▬ ► SUPPORT THE CHANNEL ◀︎▬▬▬▬▬▬▬▬▬▬
👨🏻💻️ GITHUB SPONSOR: https://github.com/sponsors/tallguyjenks
🙏🏻️ AMAZON WISHLIST: https://www.amazon.com/hz/wishlist/ls/17FRLE35NC7G8?ref_=wl_share
😇 PATREON: https://www.patreon.com/bryanjenks?fan_landing=true
🙌🏻️ YOUTUBE MEMBERSHIP: https://www.youtube.com/c/BryanJenksTech/join
☕ BUY ME A COFFEE: https://www.buymeacoffee.com/tallguyjenks
💵 PAYPAL: https://www.paypal.me/tallguyjenks
📊️ FREE STOCKS: http://join.robinhood.com/bryanj67
▬▬▬▬▬▬▬▬▬▬ ► My Newsletter ◀︎▬▬▬▬▬▬▬▬▬▬
📧️ NEWSLETTER: https://bryanjenkstech.ck.page/d4ec0713d5
▬▬▬▬▬▬▬▬▬▬ ► My Gear ◀︎▬▬▬▬▬▬▬▬▬▬
⚙️GEAR: https://kit.co/tallguyjenks/my-gear
▬▬▬▬▬▬▬▬▬▬ ► Questions? ◀︎▬▬▬▬▬▬▬▬▬▬
❓️FAQ: https://github.com/BryanJenksCommunity/FAQ/discussions
▬▬▬▬▬▬▬▬▬▬ ► Social ◀︎▬▬▬▬▬▬▬▬▬▬
💬 DISCORD: https://discord.gg/MxCVshN
🐦 TWITTER: https://twitter.com/tallguyjenks
📺 TWITCH: https://www.twitch.tv/tallguyjenks
📜️ MEDIUM: https://medium.com/@tallguyjenks
💼️ LINKEDIN: https://www.linkedin.com/in/bryanjenks/
🖥️ GITHUB: https://github.com/tallguyjenks
🌎 WEBSITE: https://www.bryanjenks.dev/
▬▬▬▬▬▬▬▬▬▬ ► The Rest ◀︎▬▬▬▬▬▬▬▬▬▬
Thanks for watching and if you liked this video please leave a 👍🏻
Subscribe to my channel and click the 🔔 icon for notifications when I post a new video
If you read this far put a 🐄 in the comments!
▬▬▬▬▬▬▬▬▬▬ ► TAGS ◀︎▬▬▬▬▬▬▬▬▬▬
#obsidian #zettelkasten #bryanjenks
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Bryan Jenks · Bryan Jenks · 27 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
▶
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
rsync for Linux Backups - The Final Barrier to Migration
Bryan Jenks
(un)Installing Packages From The (AUR) Arch Linux User Repository
Bryan Jenks
Full RStudio Set Up On Arch Linux
Bryan Jenks
Fix RMarkdown Compilation Outside Of RStudio on Arch Linux
Bryan Jenks
Markdown Document Autocompilation on Arch Linux
Bryan Jenks
Cronjobs, Cronie, & Crontab on Arch Linux
Bryan Jenks
Setting Up Slack With i3 on Arch Linux
Bryan Jenks
VS Codium (VS Code) on Arch Linux With A Shell Script
Bryan Jenks
Vimwiki Plugin For Vim Research Management on Arch Linux
Bryan Jenks
Neomutt with Protonmail on Arch Linux - LARBS - Thinkpad x220
Bryan Jenks
Command Line Task Management With Taskwarrior and Taskell On Arch Linux / Thinkpad x220
Bryan Jenks
Exploring My Fitbit Data With R in RStudio on Arch Linux
Bryan Jenks
Tellico Collections On Arch Linux
Bryan Jenks
LaTeX, Biber, and Live Compilation on Arch Linux
Bryan Jenks
R Markdown Programming Language Support
Bryan Jenks
R Markdown to make HTML Wiki's with Tabbed pages
Bryan Jenks
Announcement: New Video Series on R - "Comprehensive R Package Reviews"
Bryan Jenks
R Package Review Episode 1: Magrittr
Bryan Jenks
R Package Review Episode 2: Vitae
Bryan Jenks
My R Workflow for Reproduce-able & Portable Analysis
Bryan Jenks
R Package Review Episode 2: Here
Bryan Jenks
Introduction to Regular Expressions
Bryan Jenks
My Workflow for Reading, Organizing, and Maintaining Articles, Papers, & Books
Bryan Jenks
My First Python Project Dealing With Finance Data
Bryan Jenks
R Package Review Episode 4: Beepr
Bryan Jenks
RMarkdown Customized Styles with CSS and HTML Output
Bryan Jenks
RMarkdown Custom ID Selectors for Dynamic Headers and CSS
Bryan Jenks
HTML Headers in RMarkdown Documents For Personal/Corporate Branding
Bryan Jenks
My Semi-Complete VimWiki Workflow
Bryan Jenks
How To Make An Automated Resume With Github
Bryan Jenks
How I Use Fuzzy Finding In the Terminal with fzf (workflow++)
Bryan Jenks
How I Organize and Create My Research Notes (Research Workflow++)
Bryan Jenks
How I Use fzf.vim To Improve My Programming Workflow
Bryan Jenks
Website Updates, JavaScript, R, Shiny, Vue.js And More
Bryan Jenks
How To Use AWK (Tutorial)
Bryan Jenks
Bash Script Review: My Battery Power i3Blocks Module
Bryan Jenks
Channel Updates, Where I've Been, And Where I Want To Go With YouTube
Bryan Jenks
How To Use Neomutt 📨 From MuttWizard (Basics Tutorial)
Bryan Jenks
How To Use Jupyter Notebooks 📔 (Basics Tutorial)
Bryan Jenks
How To Use Trello In 2020 (The Definitive Guide)
Bryan Jenks
Macbook Pro 16 Inch 2020: Unboxing and Review
Bryan Jenks
How To Use Github's New Personal README and Wakatime
Bryan Jenks
How I Set Up My 2020 Macbook Pro 16
Bryan Jenks
My First Week At WGU (Western Governors University), Coffee, And Channel Updates
Bryan Jenks
The Best Academic Resources & Citation Managers: OrcID, Zotero, Mendeley & More!
Bryan Jenks
R Package Review Episode 5: TodoR
Bryan Jenks
R Package Review Episode 6: Patchwork
Bryan Jenks
Interview With Bryan of Norseman Leather Works
Bryan Jenks
Zettelkasten Work in Obsidian for Research | VOD
Bryan Jenks
How I Live With Adult ADHD (Attention Deficit Hyperactivity Disorder) [Time Stamped]
Bryan Jenks
Zettelkasten Research Work in Obsidian | VOD
Bryan Jenks
Obsidian VS Roam Research: Why I Chose Obsidian
Bryan Jenks
My 2020 Comprehensive Obsidian Workflow For Zettelkasten and Evergreen Notes
Bryan Jenks
How I Use Raindrop.io As The Entry Point of My Zettelkasten Workflow In Obsidian
Bryan Jenks
Comprehensive Overview | Obsidian Block References & Transclusion | Sorry Roam!
Bryan Jenks
Easy YouTube Timestamps From Final Cut Pro X With Python!
Bryan Jenks
NEW | Obsidian Insiders Release 0.9.10 | Plugins & Official API
Bryan Jenks
TOP 5️⃣️ | FAVORITE THINGS IN OBSIDIAN
Bryan Jenks
Comprehensive Obsidian & Git Sync Workflow 🔄️ | Your Mind Under Version Control
Bryan Jenks
Obsidian Mermaid Livestream Highlights | Zettelkasten Resources, YouTube Advice, Data Science
Bryan Jenks
More on: HTML & CSS
View skill →Related Reads
📰
📰
📰
📰
Artificial Intelligence in Everyday Life: How AI Is Changing the Way We Live in 2026
Medium · AI
Artificial Intelligence in Everyday Life: How AI Is Changing the Way We Live in 2026
Medium · Machine Learning
Maximizing RoAI: Why Most Teams Are Measuring the Wrong Thing
Medium · AI
Demystifying AI with Ember Sparks
Dev.to AI
🎓
Tutor Explanation
DeepCamp AI