AnswerBun.com

How can I add custom CSS to the result of the markdown command?

Unix & Linux Asked by hba on September 1, 2020

New to markdown…

I have a very simple markdown file, I am using the markdown command

markdown something.md -o something.html

Is it possible for me to inject my own css into the something.html file


I tried to insert the css as raw html in the markdown and then use raw-html flag when processing the markdown, I am probably doing something wrong because markdown is treating the html as text..

here is the start of something.md

<html>
 <head>
  <style>
    <link res="stylesheet" type="text/css" href="mystyle.css">
  </style>
</head>
# Testing md
## testing md2
</html>

and here is the result of executing markdown -o something.html -f +html something.md is:

<p><html>
<head></p>
<p></head></p>
<h1>Testing md</h1>
<h2>testing md2</h2>
</html></p>

Add your own answers!

Related Questions

How to configure a GRE tunnel for ubuntu?

1  Asked on December 6, 2020 by natf2d

   

resolv.conf always empty

1  Asked on December 6, 2020 by marc

         

Run a python script when connected to internet

1  Asked on December 5, 2020 by cutepoison

 

SSH remote forwarding results in 404 Not Found

1  Asked on December 4, 2020 by flow2k

   

Isolate non-FOSS “completely”

1  Asked on December 4, 2020 by user654789384

   

Use ranger as my default file manager in i3wm

3  Asked on December 4, 2020 by sln

       

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP