-
Notifications
You must be signed in to change notification settings - Fork 2
Default Styles
FAXES edited this page Feb 12, 2023
·
2 revisions
Here is a list of default styles and their names. These can be updated.
For a full CSS file with these added see dev/default.css.
{
h1: null,
h2: null,
h3: null,
h4: null,
h5: null,
h6: null,
p: "convertPara",
hr: "convertHr",
link: "convertLink",
list: "convertli",
ul: "convertul",
ol: "convertol",
table: "convertTable",
image: "convertImage",
code: "hljs",
quote: "convertQuote",
contInfo: "convertinfo",
contWarning: "convertwarning",
contDanger: "convertdanger",
contSuccess: "convertsuccess",
httprequest: "mdhttpRequest",
}
To update or add a style if not found use the following
const mdconvert = require('markdownconvert');
mdconvert.updateStyle('contDanger', 'converterDangerCSS');
If contDanger
wasn't found in the list, it would be created and added, great for adding your own rules with registerBlock()
or registerInline()
.