Code Monkey home page Code Monkey logo

Comments (5)

valentine195 avatar valentine195 commented on June 23, 2024

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.

lishid avatar lishid commented on June 23, 2024

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.

valentine195 avatar valentine195 commented on June 23, 2024

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.

ryanjamurphy avatar ryanjamurphy commented on June 23, 2024

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.

valentine195 avatar valentine195 commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.