• Stars
    star
    1,430
  • Rank 32,906 (Top 0.7 %)
  • Language
    CSS
  • License
    MIT License
  • Created almost 12 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CSS for making regular HTML look like plain-text markdown.

Markdown.css

A perverse way to make your HTML look like markdown, purely via CSS.

Use the markdown.css file to make regular HTML look like plain-text markdown. No JavaScript hacks are needed. View the demo to see what I’m talking about.

The styles are written in markdown.less. If you want to hack on this project, you can convert the less files to css with build.sh or run the watch_less.sh script to have it auto-update when the files change.

This is built to support all of the standard markdown elements with a few minor issues.

Issues:

  • repeats for h1, hr, and blockquote use characters that are repeated 100 times, so width greater than 100 characters or a blockquote more than a 100 lines will not be perfect
  • pseudo elements (:before, :after) don’t work with images (except opera), so I didn’t support making images look like markdown

Bookmarklet

Try out the experimental bookmarklet, linked at the bottom of the demo. Created in the bookmarklet generator with the following code and a jquery include:

$('link[rel=stylesheet]').add('style').remove();
$('[style]').attr('style', '');
$('head').append('<link rel="stylesheet" href="http://mrcoles.com/media/test/markdown-css/markdown.css" type="text/css" />');
$('body').addClass('markdown').css({width: '600px', margin: '2em auto', 'word-wrap': 'break-word'});
$('a img').css({'max-height': '1em', 'max-width': '1em'});

More Repositories

1

full-page-screen-capture-chrome-extension

One-click full page screen captures in Google Chrome
JavaScript
1,310
star
2

node-react-docker-compose

A reference for running a node server and create-react-app app via docker-compose.
JavaScript
313
star
3

bookmarklet

A server-side bookmarklet compiler with greasemonkey userscript-like metadata options and the power of babel and uglify
JavaScript
212
star
4

javascript-piano

An HTML5 JavaScript synth piano that generates all of its sounds using data URIs.
JavaScript
134
star
5

cssunminifier

A tool to unminify CSS—written in node.js
JavaScript
123
star
6

readmd

Pretty-print markdown
Python
32
star
7

todo-stack

Instead of a todo list, this is a todo stack—to improving multi-tasking of small daily tasks. Built on backbone.js
JavaScript
17
star
8

async-include

A super simple way to asynchronously include content on your page
JavaScript
15
star
9

static-less-coffeescript-grunt-project

A sample grunt project that compiles less and coffeescript files
JavaScript
14
star
10

picdinner_meteor

A meteor application to combine pics and audio.
JavaScript
11
star
11

original-facebook-graph-api-explorer

A tool to explore the data and options available in the graph API.
JavaScript
11
star
12

favicon-creator

Create favicons purely in Javascript
JavaScript
9
star
13

buttonmakerjs

A simple tool for generating CSS buttons.
JavaScript
8
star
14

a-muscle

Please don’t pull this repo!
7
star
15

e7n

🌎 A tool for Chrome extensions i18n/l10n to auto-populate _locales/<default_locale>/messages.json with messages from JS and HTML files
TypeScript
6
star
16

jquery-slideshow

A simple image slide show jQuery plugin
JavaScript
5
star
17

dateknight

A universal date time string formatting reference
JavaScript
4
star
18

callback-promise-async-await

Samples of callbacks, promises, and async/await usage
JavaScript
4
star
19

war-js

A JavaScript simulator of the card game war.
JavaScript
3
star
20

recursivedrawing-imageexport

User script to add an image exporting feature to recursivedrawing.com
JavaScript
3
star
21

test-chrome-extension-activetab-webrequest

This test extension uses only the `activeTab` permission and tries to access the `chrome.webRequest` API (which fails).
HTML
3
star
22

mkdjangovirtualenv

An enhancement to mkvirtualenv, specifically for django projects.
Shell
3
star
23

pinterest-api

Unoffocial API for getting a user’s pinterest pins
JavaScript
3
star
24

space-creatures

Something kind of like Space Invaders… but cuter?
JavaScript
2
star
25

emojis-json

A JSON file containing group, subgroup, character code, CLDR name, and version for all emojis (via unicode.org v12 datasets)
JavaScript
2
star
26

pseudo-cheerio

:pseudo-class support for the Cheerio NodeJS module
JavaScript
2
star
27

test-chrome-extension-capturetab

Simple example of capturing the visible tab.
JavaScript
2
star
28

expand-linkedin-bookmarklet

Bookmarklet for auto-expanding LinkedIn content
JavaScript
2
star
29

extract-garageband-midi

Extra the MIDI file from a GarageBand loop
Python
2
star
30

raphael-reference-css

Chrome user script to make the Raphael.js reference page TOC more useful.
JavaScript
2
star
31

test-chrome-extension-downloadrecents

Chrome extension test of “Save As” with download and defaulting to the recent save as directory
HTML
2
star
32

emoji-image-generator

An experiment in bulk-creating images of emojis in the browser.
JavaScript
2
star
33

test-chrome-extension-sandbox

Test to trigger settimeout not working in messages for an extension content script on content security policy sandbox pages
JavaScript
1
star
34

test-chrome-extension-executeiframes

Test `executeScript` with `allFrames: true`.
JavaScript
1
star
35

pxl-treats

a simple rust “game” to feed treats to a hungry pixel
Rust
1
star
36

dynamodb-full-scan

Helpers for doing full paginated scan operations as a Promise or AsyncGenerator with the "asw-sdk" DynamoDB DocumentClient.
TypeScript
1
star
37

videoloop

An experiment with delay and looping of video
JavaScript
1
star
38

jacobs-css3-ladder

JavaScript
1
star
39

todo-stack_meteor

A micro-task manager for keeping track of things as they stack up throughout the day—written in Meteor.
JavaScript
1
star
40

langtons-ant

A JavaScript implementation of Langton’s ant
JavaScript
1
star
41

e7n-aws-translate

🌍 A script for loading Chrome extension messages.json files and generating translations.
TypeScript
1
star