-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showdown CSS needs to be self-contained #224
Comments
Need Sofia to post links here if there are any useful articles. Here is my understanding of the issue:
Based on the above, it seems like the best option at the moment is to write some code that takes the Showdown-generated HTML and inserts a reference to CSS file that we control. In this case, need to:
|
In order to have control over Showdown specific elements, an extension is required to create a new syntax. Therefore adding default classes for each Showdown generated HTML element is necessary. A lot of people use css ui kits like bootstrap, semantic-ui and require default class names for html elements.
Showdown does not support this out of the box. But you can create an extension to accomplish this:
After incorporating these classes, changing CSS can be specific to Showdown generated elements with these default class names:
Credits for this extension go to @zusamann (original issue can be consulted here). Updated by @Kameelridder (original issue can be consulted here) |
This created extension can be found within Two style sheets are provided to demonstrate styling abilities:
To incorporate these external CSS style sheets: Place all CSS in
Following this, import the stylesheet's reference in the global style.css:
Additionally providing the
|
After reading through Sofia's comments, the InfoMapper now has the option to change a CSS file ( |
I believe the functionality has been completed. Closing this issue. |
Need Sofia to work on this in the Angular demo app, but I am adding here since there is cross-over with InfoMapper.
As I understand it, the Showdown CSS currently depends on bootstrap CSS. However, changing that could alter more fundamental components in the application. We need a way to change CDSS for the Showdown-generated HTML that is independent of the CSS for core application CSS such as bootstrap. That is the point of CSS in the first place. The following are things I would like to be able to configure in CSS:
See the Poudre Trails example. View the documentation by clicking on information icon next to Poudre Trails layer (next to the on/off slider).
The text was updated successfully, but these errors were encountered: