Skip to content

CSS for short essay writing. Printing and reading friendly. I would suggest LaTeX for longer ones.

License

Notifications You must be signed in to change notification settings

Arcadi4/markdown-css-for-essays

Repository files navigation

Markdown CSS for Essay Writing

CSS for your markdown essays. Enhancing HTML reading experience and exporting printable PDFs.

Use in Markdown Files

You'll need tools that convert Markdown into HTML, pandoc or a few VSC extensions would work well.

You can directly download the compiled .css (or .min.css) in releases.

Add the following line to your Markdown file:

<link rel="stylesheet" href="path/to/main.css" />

For code blocks, you might need to break lines manually so they won't be truncated. Keeping around 50 characters at most in a line.

Code Block Highlighting

You may use this CSS with highlight.js for code block highlighting (remember to label the language used in code blocks).

Add the following code to your Markdown file, or choose a CDN you prefer on their site:

<!-- highlight.js -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js
<script>hljs.highlightAll();</script>

Images

HTML pages

HTML1

HTML2

Exported PDFs

PDF1

PDF2

Compile

First, clone the repository:

git clone https://github.com/Arcadi4/markdown-css-for-essay-writing
cd markdown-css-for-essay-writing

Install sass if you haven't already:

npm install -g sass

Or, if you prefer using yarn:

yarn global add sass

Then run the following command to compile the SCSS file to CSS:

sass main.scss:main.css --style compressed main.scss:main.min.css

About

CSS for short essay writing. Printing and reading friendly. I would suggest LaTeX for longer ones.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages