Comments (1)
Ah, the headings get injected to the post metadata here, which happens before the mdsvex transformation, so that's why the brackets are there.
You could query the parsed html here in lib/data/posts.js for each heading in post.metadata.headings
(like ToC does) and use their innerText values instead. I think that would work.
from sveltekit-blog-template.
Related Issues (20)
- Cannot access query on a page with prerendering enabled HOT 2
- Unexpected token < in JSON at position 0 HOT 1
- Table of content HOT 1
- Update @sveltejs/kit HOT 7
- Switching post does not update the title, data and reading time HOT 1
- Better line breaks HOT 1
- Tags support HOT 2
- Rendering preview.html HOT 2
- Table of contents dont refresh after clicking internal link HOT 1
- Typescript rewrite HOT 2
- Using relative url (images) in YAML
- Build issue when deplyoing to Cloudflare pages HOT 1
- adding page transitions HOT 1
- An error occurred while processing non-English headings in the md document.
- need help debug website sveltekit
- Dynamically loading posts (infinite loading)
- Issue with post dates (timezone and locale date format) HOT 5
- Can you clarify how you want this code to be used by providing a license please ? HOT 2
- I am facing the same dynamic loader issue you had please help ! HOT 1
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 sveltekit-blog-template.