Markdown-templates to "highlight" certain things in text
Casey Colella
Use html. You can use basically any html in markdown pages
m
manidu
Casey Colella: Yes, I know, but the purpose would be to reduce the amount of code necessary in one page and keep the look of one "type" consistent across multiple pages and users.
Casey Colella
manidu: create a class and use the :before pseudo class to put the image in there. you only need a span (or a div) and a class. That's not much more code than some "custom markdown" would be and doesn't require any development work to be done for the result you want
m
manidu
Casey Colella: That is exactly what I am doing now. However, without creating a custom theme the "Code Injection" section in the administration area is getting pretty long and overview is lost. Furthermore, not all my colleagues are familiar with "classes", "divs", etc., so it is far more easier to tell them to "use a <server>abc</server>"-tag (or some md-equivalent) to indicate a server than explain what a "div"-tag and "classes" are... Also, such things could be included in the WYSIWIG-editor, which makes it even easier to use for "non-coding" colleagues.
Casey Colella
manidu: you can define css for a custom tag, like server. You can also use the head injection instead to inject a css file. here's how I have mine:
Qds Soft
Casey Colella:
Just make sure to disable HTML sanitizing or else non standard HTML tags will be deleted and the css for this tag will stay without effect.
But it's advisable ONLY for non public environments, where you can be sure that the users won't use XSS ...