Comments (8)
Hey. Strange but customizing style var works on my machine. Lets see. Stylesheet file is coded into -preview.html
file for sake of default css for the page only. It is replaced by the style var after page is connected to emacs buffer. So, here are 2 options possible: javascipt error seen in browser console, which prevents from replacing stylesheet tag, or it's variable to blame, meaning new value didn't apply. If you find nothing strange in the browser console, then please check the output of M-x describe-variable RET markdown-preview-style RET
.
from markdown-preview-mode.
Hi, thanks for the fast reply. No browser erros, it's value is:
markdown-preview-style is a variable defined in `markdown-preview-mode.el'.
Its value is
"https://sindresorhus.com/github-markdown-css/github-markdown.css"
from markdown-preview-mode.
When I inspect with Chrome I see that the stylesheet value in the header is updated to reflect the correct link, however the actual styles are not applied to the elemens (h1, h2 etc). Strange...
from markdown-preview-mode.
Figured it out :-). When I change "<article id=", to "<article class=" it works. Apparently markdown changed from setting the id of the article to setting the class.
from markdown-preview-mode.
I see. It's a github markdown css file. I guess, this css should be paired with appropriate markdown processor.
from markdown-preview-mode.
One quick question, do you know how I can pair the right processor? I can't find a markdown binary which does exactly render like github. Instead I use a command line utility named grip now. Can I hook this up with markdown-preview-mode?
from markdown-preview-mode.
Sure. That's done via customizing markdown-command
variable.
from markdown-preview-mode.
I guess, thanks to @zenkiezhu this can be closed now.
from markdown-preview-mode.
Related Issues (20)
- Requires brew install markdown but nothing about that in the docs HOT 1
- Preview refresh broken on untitled scratch buffer after save
- lexical-let needs cl
- Allow to disable auto-scroll HOT 2
- `github` stylesheet HOT 2
- "make server process failed" when enabling markdown-preview-mode HOT 4
- "make client process failed" when start to edit markdown file HOT 3
- Can't install. Package 'uuidgen-0.3' is unavailable. HOT 4
- Cannot open localhost:9000 HOT 4
- Error: (wrong-type-argument arrayp nil) on Windows HOT 2
- Do I need to use http or file is enough? HOT 1
- wrong-type-argument websocket nil HOT 4
- Error displayed in web browser when "markdown-preview-mode" is run
- When `markdown-preview-cleanup` but it doesn't really cleans up?
- Emoji supports?
- Markdown preview html did not get delete after Emacs get killed.
- "Error running timer: (user-error "Markdown command markdown is not found")" and Markdown is not displayed properly.
- Byte-compiler warning that the function 'my-filter' is unknown HOT 2
- error in process filter: Not enough arguments for format string HOT 2
- Mathjax
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdown-preview-mode.