mrcoles / markdown-css Goto Github PK
View Code? Open in Web Editor NEWCSS for making regular HTML look like plain-text markdown.
Home Page: http://mrcoles.com/demo/markdown-css/
License: MIT License
CSS for making regular HTML look like plain-text markdown.
Home Page: http://mrcoles.com/demo/markdown-css/
License: MIT License
Hi,
I see you currently use "1." everytime, you can solve this more eleagant using:
As much as I like kittens... This adds the markdown for images too:
.markdown img {
display: inline;
content: "";
height: 1px
}
.markdown img:before {
content: "![" attr(alt) "](" attr(src) ")";
display: inline;
color: #333333;
}
and not only links - special symbols either
so how am i supposed to use the css - just to see what should be and retype the markup by myself?
BTW your demo here http://mrcoles.com/demo/markdown-css/ has the same issue
CSS3 introduces the ch
unit of length (MDN). This is exactly as much horizontal space as the character 0
occupies, and thus for a monotype font as much horizontal space as any character. By using this unit you could make sure (e.g.) code blocks are indented exactly 4 spaces:
.markdown pre {
margin-left: 4ch;
}
Because CSS parsers ignore anything they don’t understand it is easy to create fallback methods for units:
.markdown pre {
margin-left: 36px;
margin-left: 4ch; /* Only picked up by browsers that know `ch`. */
}
This would make for a much neater aligned text. I’ll see if I can do a pull request later, maybe someone else can get there before me.
With ordered lists the "list bullets" are not highlightable (as expected), but for some reason, with an ordered list the numbers are highlightable (not expected).
.markdown a:before {content:'['}
.markdown a:after {content:'](' attr(href) ')'}
.markdown a[title]:after {content:'](' attr(href) ' "' attr(title) '")'}
We at VersionEye are working hard to keep up the quality of the bower's registry.
We just finished our initial analysis of the quality of the Bower.io registry:
7530 - registered packages, 224 of them doesnt exists anymore;
We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).
Sadly, your library mrcoles/markdown-css
is one of them.
Can you spare 15 minutes to help us to make Bower better?
Just add a new file bower.json
and change attributes.
{
"name": "mrcoles/markdown-css",
"version": "1.0.0",
"main": "path/to/main.css",
"description": "please add it",
"license": "Eclipse",
"ignore": [
".jshintrc",
"**/*.txt"
],
"dependencies": {
"<dependency_name>": "<semantic_version>",
"<dependency_name>": "<Local_folder>",
"<dependency_name>": "<package>"
},
"devDependencies": {
"<test-framework-name>": "<version>"
}
}
Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.
NB! Please validate your bower.json with jsonlint before commiting your updates.
Thank you!
Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.