Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Show source html instead of rendering it. #331

Open
Jmuccigr opened this issue Apr 3, 2015 · 5 comments
Open

Feature request: Show source html instead of rendering it. #331

Jmuccigr opened this issue Apr 3, 2015 · 5 comments

Comments

@Jmuccigr
Copy link
Contributor

Jmuccigr commented Apr 3, 2015

It'd be nice if one could toggle between the code that's being generated and its output. I find myself often wanting to see what html was generated in order to find mistakes in my markdown. Copying it to the clipboard is handy, but not ideal.

@uranusjr
Copy link
Member

One way to see the HTML is to enable the OS X built-in WebKit developer tools for MacDown:

defaults write com.uranusjr.macdown WebKitDeveloperExtras -bool true

And select “Inspect Element” in the right-click context menu inside the preview pane.

This is the exact same inspector you find in Safari if you turn on the developer tools. It might take some time to get used to, but it is way more powerful than anything I can ever write myself.

Maybe this should be exposed in the preference menu, too. Can be useful for those who know how to use it?

@Jmuccigr
Copy link
Contributor Author

Yes, that works for me, so consider this a request to add that as a standard pref.

Can you also make that window stay in front all the time? (Palette window?)

@uranusjr
Copy link
Member

Not sure; I’ll look into this.

@Jmuccigr
Copy link
Contributor Author

Thanks. (Have you had a look at the other issues I've added? I think they're bugs.)

@Jmuccigr
Copy link
Contributor Author

Just had to search for this tip. Any progresso on adding it to the prefs? I just put in a PR ( #1005 ) for adding it to the help page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants