Questions tagged [markdown-mode]
69 questions
16
votes
2 answers
Collapse sections in markdown
I use markdown-mode (in conjunction with writeroom-mode) for writing in Emacs. My markdown files generally gets quite large, and I would like to be able to focus on a particular section for extended periods of time.
How can I achieve this?…

Sridhar Ratnakumar
- 493
- 3
- 20
16
votes
1 answer
Github-flavored markdown mode: syntax highlight code blocks
For example, if I have a markdown file with the following:
###This is my markdown file
here is some text.
here is my code block:
``` js
var accountdown = require('accountdown');
var level = require('level');
var db = level('/tmp/users.db');
var…

modulitos
- 2,432
- 1
- 18
- 36
9
votes
1 answer
How to fix markdown-mode's fill-paragraph?
markdown-mode is
pretty good at filling paragraphs overall, but there's one flaw that
really bothers me. If a paragraph contains a line which ends in two
spaces, it only starts filling never fills that line.
For instance, take the following example,…

Malabarba
- 22,878
- 6
- 78
- 163
9
votes
4 answers
How to make hyperlinks clickable in markdown mode?
In an emacs org-mode buffer it is possible to type a hyperlink and then click on the hyperlink with a mouse to open the url in an external browser.
Is there a way for markdown mode to have active hyperlinks as well?

Kevin Wright
- 359
- 1
- 16
8
votes
1 answer
Can we get inline results with polymode for Rmd files?
As a new Emacs user, I've recently learned how to use polymode to handle R code in org-mode. I'm happy with it, since I get the same features than those implemented for example in Rstudio for Rmd files (e.g., facilities to execute code chunks and…

Philopolis
- 1,094
- 8
- 14
7
votes
1 answer
How do I make markdown or org mode hide formatting characters until I edit?
I'd like to hide markdown / org-mode markup characters when viewing a file, so I set org-hide-emphasis-markers and markdown-hide-markup to t. However, when editing a section of text, I'd like to see the characters. A function like…

amitp
- 2,451
- 12
- 23
7
votes
2 answers
How to make Flyspell ignore code blocks in Markdown?
Can I filter what Flyspell may check in the buffer? I don't want it to spell-check code in Markdown mode.
Maybe I can use the font-face at point for that? Something like this:
(let ((get-char-property (point) 'face))
(when (equal face…

katspaugh
- 379
- 2
- 8
7
votes
3 answers
How to configure markdown-mode to render headings like org-mode?
Beloved org-mode can be configured so that different headings (aka, entry titles) display with different colors depending on their nesting level, and so that they only show the final markup character instead of the whole string of them.
Is it…

algal
- 315
- 2
- 9
5
votes
2 answers
Correct markdown-format tables with orgtbl-mode?
I'm just learning about org-mode, and of course blown away by its sheer level of usability. I of course want to use it everywhere, so I want to create tables with it. Including tables in markdown-mode.
The problem I'm running into is that the…

Trevoke
- 2,375
- 21
- 34
5
votes
1 answer
How to get align-regexp to help line up Markdown tables properly?
I am trying to line up a text table using align-regexp. A table, before alignment, looks like this:
| Alpha | Bravo | Charlie |
|-------|-------|---------|
| Delta | Echo | Foxtrot |
| Golf | Hotel | India |
and after alignment should look like…

rityzmon
- 181
- 3
4
votes
1 answer
Enable any outline mode for markdown
First of all, from http://www.emacswiki.org/emacs/AllOut:
Allout outline mode is part of GnuEmacs.
Allout outline mode provides extensive outline formatting and
manipulation beyond standard emacs outline mode. It provides for
structured…

xpt
- 447
- 3
- 16
4
votes
0 answers
Markdown equivalent of `org-indent-mode`?
What's the simplest way of ensuring that the text below a headline in a Markdown file is aligned with the headline? In org-mode you can accomplish this by calling org-indent-mode. Is there a similar function for Markdown?
At the moment, using…

apc
- 309
- 2
- 8
4
votes
3 answers
How can I turn off clickable links in markdown mode?
I would like markdown-mode to treat URLs as normal text, so that I can click on them to place the cursor inside them rather than loading the page in a browser.
I tried toggling goto-address-mode, which didn't help, and I tried removing http and…

Jay Daigle
- 41
- 1
4
votes
1 answer
Minor markdown-mode for comments
I like to use the markdown-mode for READMEs.
And I would like to use the markdown-mode as a minor-mode for comments in other major-modes like sh-mode. Is this possible somehow?

ceving
- 1,308
- 1
- 14
- 28
4
votes
1 answer
How to preserve list indentation after RET in markdown-mode?
When I'm editing a markdown-mode document with a list like this:
* foo
* bar
* baz
and my cursor is at the very end of the baz line, and I press RET (which is bound to markdown-enter-key) then the baz line gets dedented so the file looks like…

jml
- 161
- 3