We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using remark-admonitions in the context of Docusaurus v2. I tried to define my admonition like so:
customTypes: { kk: { keyword: "kk", emoji: "❗️", svg: ` <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"> ...svg xml... </svg> `, }, },
Which I expected to work. However it gave me the following error:
TypeError: Cannot read property 'map' of undefined at Array.map () at new Promise ()
What I had to do, was remove all newlines and extra spaces in the svg string:
customTypes: { kk: { keyword: "kk", emoji: "❗️", svg: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32">...svg xml...</svg> `, }, },
Then it worked.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using remark-admonitions in the context of Docusaurus v2. I tried to define my admonition like so:
Which I expected to work. However it gave me the following error:
What I had to do, was remove all newlines and extra spaces in the svg string:
Then it worked.
The text was updated successfully, but these errors were encountered: