-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
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
Rendering of CommonMark does not produce expected output #142
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue. |
This could be caused by tailwind and its CSS reset, which may omit styling with bullet points. I will investigate this. |
Seems like Tailwind uses Question now is, if no bullet points are a desired behaviour or we do want to display bullet points. I think we want to display them, so I'm creating a PR soon. |
yeap, we definitely should support rendering on the bullet points |
@Theiaz shouldn't this be enough ?
|
I don't think that this will work, cause it deactivate classes for styling lists. You can not use any class from here anymore. I had a quick look at the code and it seems like this problem could not be solved that easily. If you add styliing manually (for example with We need to styline the markdown section separatly:
Maybe the simplest solution could be something like |
Thanks in advance @Theiaz and @derberg and let me know if I can be of any help. For those who come by here: I am currently getting my bullet items back by defining a specific version like this:
|
FInally I had some time and found the issue. Tailwind changed its default styling for list items. Due to the migration from v0.x to v2.x this needs to be applied. I did not noticed it, because it only affects the markdown part and in my test file there has not been one. To fix this issue list styles are applied for markdown nodes.
Additionally I've fixed a little color issue. |
🎉 This issue has been resolved in version 0.17.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The fix was done solely on main.css which is not included in the index.html when singleFile param is false. Therefore changes are not present and markdown lists do not render. Weirdly enough the fix seems to have been done to tailwind.min.css in commit df9c9c7 but this commit is not included in the release. In package.json there is a script for tailwind css generation. If this is used why include main.css in the index.html at all? |
Looks like v0.17.1 was tagged incorrectly: v0.17.1...master |
Late to the game but at least the current playground version doesn't support other styling of commonmark either. Im writing AsyncAPI for our governance in a bigger enterprise and to have styling in any description field according to commonmark is crucial. |
@dweber019 can you provide more details on this in a separate issue, where you want to use markdown and where it is not supported. Some screenshots and example spec would help a lot |
Describe the bug
When I create an output of the streetlights example, I don't get anymore nicely rendered output as it used to be. I thought it had something to do with a missing main.css file (see this PR), but fixing this locally didn't do the trick.
How to Reproduce
Create a new repo and
npm install @asyncapi/[email protected]
Create a minimal example like this:
This produces output like this:
Expected behavior
I used to get output like this (this worked until @asyncapi/[email protected] but not anymore afterwards):
Notice the bullet items which come from this CommonMark formatted section in the spec:
The text was updated successfully, but these errors were encountered: