Comments (5)
Yeah, I went back and forth on this before I submitted it, but when I first wrote it I just straight up copied the Material for MkDocs syntax and it seemed several people in the forums were using it, so I left it as-is to prevent breaking their already written notes.
I was thinking of just prefixing the ID with ad-
(as in, ad-note
). Do you think that would be acceptable?
Edit: Also, honestly, I think I'm going to drop the aliases. After using it for awhile I don't see a need for them. It cuts down on the number of code block IDs, but I'll still add the prefix (or type parameter if necessary).
from admonitions.
That could work - in fact one of our mods proposed the ad-
prefix as a solution too. In the end I think it's a balance between convenience, how good it looks in code, and how likely it's going to conflict with other plugins. I'm good as long as something is done to address the potential conflict.
from admonitions.
Okay, updated with 2.0.0.
Also, just a quick question related to this - is there an API hook for when a plugin is updated (as opposed to just loaded / installed)? This could be used, for instance, to alert users to syntax changes.
Anyway, thanks for the feedback.
from admonitions.
Thanks for being so responsive (and responsible) on this front, @valentine195!
I'm not sure on the update hook, but you could do a staged deprecation: continue to recognize the previous syntax for an update or two, but present a message in the rendered blocks warning users about what the new syntax should be.
from admonitions.
A staged deprecation would work, but I think in this instance it was better to just rip the band-aid off π
from admonitions.
Related Issues (20)
- Explicit title invisible when βNo Admonition Title by Defaultβ is on HOT 4
- The tags inside the admoniton is not appearing in the tag search HOT 2
- admonition not working
- Leave a large blank in editing view HOT 1
- Doc: Dead link (to obsidian callout box docs)
- FR: Make Callout Copy Button Visible in Live Preview HOT 1
- Callout Autocomplete Pop-up HOT 2
- Publish.js seems to not be working HOT 3
- can I DIY the block format HOT 1
- custom callouts rendered to probably some default value HOT 2
- [Docu]: Admonitions Readme 1.0 HOT 1
- [Bug]: Adding Custom Admonition HOT 4
- [Bug]: Indentation Guides missing in admonitions HOT 1
- [Bug]: HOT 1
- [Code]: Sourcepath for getAdmonitionElement
- Cannot update or install on Android 11π HOT 2
- π Internal links in the Admonition are no longer clickable. HOT 3
- π Remove timestamp in CSS snippet for custom callouts HOT 1
- Unresolved internal links don't look different HOT 1
- π Commands to Collapse and Open Admonition in Note not working 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 admonitions.