{"id":29005,"date":"2017-01-23T18:01:05","date_gmt":"2017-01-23T10:01:05","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=29005"},"modified":"2018-04-09T16:55:10","modified_gmt":"2018-04-09T08:55:10","slug":"wysiwyg-css","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/","title":{"rendered":"How to Add Styles to TinyMCE &amp; Markdown Content"},"content":{"rendered":"<p>Many writers prefer <strong>working in Markdown<\/strong> because it\u2019s a simpler language with fewer hurdles to climb. Granted it is far from perfect, but it offers a <strong>cleaner view of your text<\/strong> with the ease of <strong>exporting into HTML<\/strong>.<\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/web-content-with-markdown\/\">A Guide to Writing Web Content Using Markdown<\/a>\n\t\t\t\t<\/p>\n<p>Unfortunately, the default Markdown styles are usually pretty boring. But with the <strong><a target=\"_blank\" href=\"https:\/\/jgthms.com\/wysiwyg.css\/\">wysiwyg.css library<\/a><\/strong>, you can <strong>have a vibrant document<\/strong> in no time.<\/p>\n<p>This free CSS library transforms all your basic TinyMCE or Markdown content into <strong>formatted, easy-to-read blocks of HTML<\/strong>.<\/p>\n<p>You don\u2019t need to know any complex HTML\/CSS to use this plugin. Simply <strong>wrap the generated content<\/strong> into a div with the class <code>.wysiwyg<\/code>, and you\u2019re all set.<\/p>\n<p>The real difficulty is building an app that would automate this process, or adding this library onto the backend for a user admin panel.<\/p>\n<p>However, the possibilities are endless, and you could even use this <strong>for local writing work<\/strong> if you prefer to export your content <strong>from Markdown to HTML<\/strong>.<\/p>\n<figure><a target=\"_blank\" href=\"https:\/\/jgthms.com\/wysiwyg.css\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wysiwyg-css\/02-wysiwyg-how-it-looks.jpg\" alt=\"wysiwyg css\" width=\"800\" height=\"854\"><\/a><\/figure>\n<p>By default, this CSS library has <strong>support for every major HTML tag<\/strong> imaginable. This includes all headers, lists, links, pre\/code tags, figures and even semi-obscure tags like <code>&lt;sup&gt;<\/code> and <code>&lt;abbr&gt;<\/code>. There\u2019s a <strong>full list<\/strong> in the <a target=\"_blank\" href=\"https:\/\/jgthms.com\/wysiwyg.css\/\">GitHub repo<\/a> if you want to check it out.<\/p>\n<p>If you define your own typographic styles, these can even <strong>rewrite the default settings<\/strong> in the stylesheet. So you can get all the benefits of wysiwyg.css <strong>mixed with your own font choices<\/strong>.<\/p>\n<p>The library could not be easier to setup either. Just <strong>download <a target=\"_blank\" href=\"https:\/\/raw.githubusercontent.com\/jgthms\/wysiwyg.css\/master\/wysiwyg.css\">a copy<\/a> locally<\/strong> or <strong>pull it directly<\/strong> using <code>npm install wysiwyg.css<\/code><\/p>\n<p>From there, you just <strong>include the CSS file<\/strong> in your document head, and let it run. It\u2019ll only target the contents <strong>inside a container with the class <code>.wysiwyg<\/code><\/strong>, so this class should wrap whatever container you want.<\/p>\n<p>The library is still being <strong>updated semi-frequently<\/strong>, so you can <strong>find recent updates<\/strong> in <a target=\"_blank\" href=\"https:\/\/github.com\/jgthms\/wysiwyg.css\">the main GitHub repo<\/a>. And if you have suggestions or ideas for new updates feel free to share with the creator Jeremy Thomas on his Twitter page <a target=\"_blank\" href=\"https:\/\/twitter.com\/jgthms\">@jgthms<\/a>.<\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/free-code-editors-reviewed\/\">10 Best Free Source Code Editors<\/a>\n\t\t\t\t<\/p>","protected":false},"excerpt":{"rendered":"<p>Many writers prefer working in Markdown because it\u2019s a simpler language with fewer hurdles to climb. Granted it is far from perfect, but it offers a cleaner view of your text with the ease of exporting into HTML. Unfortunately, the default Markdown styles are usually pretty boring. But with the wysiwyg.css library, you can have&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3393],"tags":[507,4109],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Add Styles to TinyMCE &amp; Markdown Content - Hongkiat<\/title>\n<meta name=\"description\" content=\"Many writers prefer working in Markdown because it&#039;s a simpler language with fewer hurdles to climb. Granted it is far from perfect, but it offers a\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Styles to TinyMCE &amp; Markdown Content\" \/>\n<meta property=\"og:description\" content=\"Many writers prefer working in Markdown because it&#039;s a simpler language with fewer hurdles to climb. Granted it is far from perfect, but it offers a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-23T10:01:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-04-09T08:55:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/wysiwyg-css\/02-wysiwyg-how-it-looks.jpg\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wysiwyg-css\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wysiwyg-css\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"How to Add Styles to TinyMCE &amp; Markdown Content\",\"datePublished\":\"2017-01-23T10:01:05+00:00\",\"dateModified\":\"2018-04-09T08:55:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wysiwyg-css\\\/\"},\"wordCount\":347,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wysiwyg-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wysiwyg-css\\\/02-wysiwyg-how-it-looks.jpg\",\"keywords\":[\"CSS\",\"CSS Frameworks\"],\"articleSection\":[\"Toolkit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wysiwyg-css\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wysiwyg-css\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wysiwyg-css\\\/\",\"name\":\"How to Add Styles to TinyMCE &amp; Markdown Content - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wysiwyg-css\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wysiwyg-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wysiwyg-css\\\/02-wysiwyg-how-it-looks.jpg\",\"datePublished\":\"2017-01-23T10:01:05+00:00\",\"dateModified\":\"2018-04-09T08:55:10+00:00\",\"description\":\"Many writers prefer working in Markdown because it's a simpler language with fewer hurdles to climb. Granted it is far from perfect, but it offers a\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wysiwyg-css\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wysiwyg-css\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wysiwyg-css\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wysiwyg-css\\\/02-wysiwyg-how-it-looks.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wysiwyg-css\\\/02-wysiwyg-how-it-looks.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wysiwyg-css\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add Styles to TinyMCE &amp; Markdown Content\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Add Styles to TinyMCE &amp; Markdown Content - Hongkiat","description":"Many writers prefer working in Markdown because it's a simpler language with fewer hurdles to climb. Granted it is far from perfect, but it offers a","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Styles to TinyMCE &amp; Markdown Content","og_description":"Many writers prefer working in Markdown because it's a simpler language with fewer hurdles to climb. Granted it is far from perfect, but it offers a","og_url":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2017-01-23T10:01:05+00:00","article_modified_time":"2018-04-09T08:55:10+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/wysiwyg-css\/02-wysiwyg-how-it-looks.jpg","type":"","width":"","height":""}],"author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"How to Add Styles to TinyMCE &amp; Markdown Content","datePublished":"2017-01-23T10:01:05+00:00","dateModified":"2018-04-09T08:55:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/"},"wordCount":347,"commentCount":0,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/wysiwyg-css\/02-wysiwyg-how-it-looks.jpg","keywords":["CSS","CSS Frameworks"],"articleSection":["Toolkit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/","url":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/","name":"How to Add Styles to TinyMCE &amp; Markdown Content - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/wysiwyg-css\/02-wysiwyg-how-it-looks.jpg","datePublished":"2017-01-23T10:01:05+00:00","dateModified":"2018-04-09T08:55:10+00:00","description":"Many writers prefer working in Markdown because it's a simpler language with fewer hurdles to climb. Granted it is far from perfect, but it offers a","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/wysiwyg-css\/02-wysiwyg-how-it-looks.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/wysiwyg-css\/02-wysiwyg-how-it-looks.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/wysiwyg-css\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Add Styles to TinyMCE &amp; Markdown Content"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-7xP","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=29005"}],"version-history":[{"count":2,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29005\/revisions"}],"predecessor-version":[{"id":29007,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/29005\/revisions\/29007"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=29005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=29005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=29005"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=29005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}