Coder Social home page Coder Social logo

Comments (8)

ancane avatar ancane commented on September 2, 2024

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.

vanderheijden86 avatar vanderheijden86 commented on September 2, 2024

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.

vanderheijden86 avatar vanderheijden86 commented on September 2, 2024

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.

vanderheijden86 avatar vanderheijden86 commented on September 2, 2024

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.

screen shot 2016-09-23 at 11 20 36

from markdown-preview-mode.

ancane avatar ancane commented on September 2, 2024

I see. It's a github markdown css file. I guess, this css should be paired with appropriate markdown processor.

from markdown-preview-mode.

vanderheijden86 avatar vanderheijden86 commented on September 2, 2024

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.

ancane avatar ancane commented on September 2, 2024

Sure. That's done via customizing markdown-command variable.

from markdown-preview-mode.

ancane avatar ancane commented on September 2, 2024

I guess, thanks to @zenkiezhu this can be closed now.

from markdown-preview-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.