nebrelbug / react-admonitions

An admonitions React component, ported from remarkable-admonitions. Perfect for Docusaurus v2 and other React-based doc generators
https://nebrelbug.github.io/react-admonitions/
11 stars 4 forks source link

add admonition type: question #2

Closed arcturus140 closed 4 years ago

arcturus140 commented 4 years ago

I think it would be super useful if a new admonition type would be added: question to highlight a quesiton.

nebrelbug commented 4 years ago

@arcturus140 that's a great idea! Would you like to submit a pull request?

arcturus140 commented 4 years ago

@nebrelbug,

didn't have that in mind. I never worked with react or js but it should be trivial to add the question type to the existing ones. How can I view it on localhost for development?

I tried npm install --save react-admonitions and npm run

nebrelbug commented 4 years ago

After Git cloning, cd into the folder and run npm install.

Then, cd example and run npm start

nebrelbug commented 4 years ago

It should be fairly easy to add the change. React-Admonitions uses SVG codes from Octicons so you'd pick an icon from there.

Good luck! :smiley: