Comments (5)
This is probably due to highlight.js dependency getting upgraded to latest versions?
Yes. Marp Core v3.x has included major update of highlight.js v10 -> v11. The base16
themes have actually moved to new locations so you should follow up the latest change at new location.
https://github.com/highlightjs/highlight.js/tree/main/src/styles/base16
- All Base16 themes now live in the
styles/base16
directory - this means some CSS files have moved. Please confirm themes you use reference the new locations.— https://github.com/highlightjs/highlight.js/blob/main/VERSION_11_UPGRADE.md#styles-and-css
from marp-core.
Thanks those were super helpful pointers. I grabbed the latest style files but still see the same issue. However, I noticed if I add !important
to everything in the style file things begin to work fine. 🤔
from marp-core.
Lines 62 to 76 in abc4e2e
In the current default theme, most selectors for highlight.js have become the narrowed shape
pre .hljs-xxxxxx
after compiled to CSS, to avoid collision with user-defined class in Markdown. These have 0-1-1
CSS specificity.
Selectors for highlight also may be required 0-1-1
and higher specificity to overload. pre .hljs-xxxx
instead of .hljs-xxxx
.
from marp-core.
You're absolutely right. That fixed it.
You sir are on top of your stuff. 💪🏼
from marp-core.
Update in v3.2.1: Allowed overloading default styles by a simple class definition .hljs-xxxx
again. The pre
element scoping is no longer required as same as v2.x.
Thank you for your feedback!
from marp-core.
Related Issues (20)
- Simplify rendering of auto-scaled element by using hydrated Web Components
- Type Error after trying to bundle marp-core with rolllup HOT 9
- Drop EOL Node 10 support
- mathjax inline support not enabled HOT 1
- Embedded svg in presentation HOT 2
- Mathjax formulas looking "bold" when exported to pdf on some pdf viewers HOT 2
- [v4?] New code highlighter
- [v4] Math syntax: GFM vs Pandoc based
- Slugify Markdown headers
- Relax HTML allowlist HOT 4
- Content overlap with header and footer in included themes HOT 2
- Emoji Rendering Discrepancy Between Inline and Block Elements HOT 1
- Usage or marp-core in browser context HOT 2
- Emoji plugin: Allow using other emoji vendors HOT 3
- [bug] import failure `i is not a function` HOT 5
- Trouble rendering HTML and Markdown in the same line HOT 1
- A Marp constructor option, emoji.twemoji.base, seems not working HOT 1
- Overriding hljs-attr color does not work HOT 2
- [Regression] Auto-scaling for KaTeX block is always enable regardless of `@auto-scaling` theme metadata
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marp-core.