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
It may be better to parse the description field in the Component API Props documentation to show code text as code instead of `code`:
code
A simple RegExp replace method should be enough, if a string can be parsed as HTML:
"`hasIconOnly` must be set to `true`.".replace(/`(.*?)`/g, "<code>$1</code>"); // Output: "<code>hasIconOnly</code> must be set to <code>true</code>."
So, in ComponentApi.svelte:115,
https://github.com/IBM/carbon-components-svelte/blob/8c304521691c3e25a1670e3f73d18cc9c59ee5cc/docs/src/components/ComponentApi.svelte#L114-L116
line should be appended with the replace method described above:
line
<div class="description">{@html line.replace(/`(.*?)`/g, "<code>$1</code>")}.</div>
The text was updated successfully, but these errors were encountered:
Noted
Sorry, something went wrong.
May I open a PR?
Sure
Successfully merging a pull request may close this issue.
It may be better to parse the description field in the Component API Props documentation to show code text as
code
instead of `code`:A simple RegExp replace method should be enough, if a string can be parsed as HTML:
So, in ComponentApi.svelte:115,
https://github.com/IBM/carbon-components-svelte/blob/8c304521691c3e25a1670e3f73d18cc9c59ee5cc/docs/src/components/ComponentApi.svelte#L114-L116
line
should be appended with the replace method described above:The text was updated successfully, but these errors were encountered: