Git Product home page Git Product logo

Comments (4)

MyBaBB avatar MyBaBB commented on June 21, 2024

I believe that I have the component correct, I would like to collaborate with @sugam Goel to see if we can iron this out in the docusaurus.config file

from climate-tech-handbook.

MyBaBB avatar MyBaBB commented on June 21, 2024

We are trying to do this.

  • ![That Image](/img/.jpg "figcaption here")

While this is what is achieved naturally here.

  • ![That Image](/img/.jpg "A Tooltip is Created")

from climate-tech-handbook.

Sugamgoel28 avatar Sugamgoel28 commented on June 21, 2024

Is this relevant?
facebook/docusaurus#4633

from climate-tech-handbook.

futuresoup avatar futuresoup commented on June 21, 2024

@Sugamgoel28 @MyBaBB - yes it looks like the right direction. Do you understand what they're saying about passing remark/rehype plugins so we can invent our own syntax?

The implementation example provided from @cmdcolin seems relevant.

The only issue with the way he did it is that:

A) it requires importing the component on each page which is cumbersome and not good for writers. I also don't know if it will be work out of the box with our Decap CMS system

B) The syntax does not look like markdown, it looks like jsx. That's more of a minor thing, but it is easy to forget the syntax the way he has it and perhaps incompatible with migrating to different systems if we decide to move away from Docusaurus.

That said, you're welcome to try his implementation as a backup if we can't make an official plugin that does this the proper way.

from climate-tech-handbook.

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.