Comments (5)
Hi,
this is "expected" in the current implementation because markdown characters (*_
etc) are naively stripped from the link text, as it's not possible to have styles there (see Known issues in the readme)
But there are probably possible improvements, feel free to share methods to strip markdown characters in a more efficient way 🙏
from obsidian-automatic-table-of-contents.
what do you use to strip the markdown characters ?
from obsidian-automatic-table-of-contents.
obsidian-automatic-table-of-contents/main.js
Lines 177 to 182 in f6af983
from obsidian-automatic-table-of-contents.
If I clearly understand text
is the whole header.
Something strange in Obsidian is that all the code are interpreted inside the word except the underscore.
Perhaps, we could strip the underscore in a different way by removing them only at the begining or the end of the word.
Another solution should be to support the escape code and only remove the escape code and keeping the caracter after.
Need some other thoughts about it and how to do it in JS.
from obsidian-automatic-table-of-contents.
Last option but the simpler : Adding an option inside the toc for discarding the MD code or not inside the link.
Surely the simpliest solution
from obsidian-automatic-table-of-contents.
Related Issues (20)
- Please add the ability to **fold** in future upgrades. HOT 1
- Consider sanitizing HTML tags from TOC entries HOT 3
- Problem with pinned notes HOT 2
- Proposed display changes: headings with links, headings with bold / italics HOT 3
- Table of Contents in a seperate file HOT 2
- Ignore emojis HOT 2
- Automatic Table of Contents on Publish.Obsidian.md HOT 4
- Quick and dirty addition of title "Table of Contents" HOT 1
- 💥 Could not render table of contents (Invalid regular expression: /[[/gs: Unterminated character class) HOT 5
- Possibility to set starting point of ToC HOT 1
- Default settings
- Allow inlineFirstLevel to be also for another level HOT 2
- Ability to create a directory of the current document in another document HOT 1
- Add support for nested ordered list HOT 1
- Exclude or ignore specific headings by text
- [BUG]: Link appearing when display=none HOT 1
- [FR]: Allow for embedded markdown headings to be part of the automatic TOC
- Je vous rec?- Imbbommande cet article de Radio-Canada Info
- Add option to hide an empty TOC 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 obsidian-automatic-table-of-contents.