Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use CSS in Markdown?

Tags:

markdown

I want to use a CSS class in a Markdown file.

For instance, <i class="icon-renren"></i> (from fontawesome) should be displayed as an icon if I import its CSS file in HTML.

Is there any solution in Markdown?

like image 687
chenzhongpu Avatar asked Nov 27 '14 16:11

chenzhongpu


People also ask

Can you add CSS to Markdown?

Markdown does not support CSS styles. Since Markdown converts to HTML, Any valid HTML works. CSS styles are added with inline or style tags in HTML.

Can I use CSS in GitHub Markdown?

Unfortunately you cannot use CSS in GitHub markdown as it is a part of the sanitization process. The HTML is sanitized, aggressively removing things that could harm you and your kin—such as script tags, inline-styles, and class or id attributes.

How do you make an inline CSS?

CSS can be added to HTML documents in 3 ways: Inline - by using the style attribute inside HTML elements. Internal - by using a <style> element in the <head> section.

What is CSS file?

Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS describes how elements should be rendered on screen, on paper, in speech, or on other media.


1 Answers

you can use html in your mark down as normal.

<style> mark{     color:red; } </style>  <mark>what is DataBase</mark> 
like image 66
Shehan Hasintha Avatar answered Sep 30 '22 16:09

Shehan Hasintha