Questions tagged [markdown-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
80 views

How to fold nested list items in markdown-mode

I would like to be able to fold nested list items in markdown-mode in the same way that it is possible to do in org-mode, so that, for example, the first sub-item in the following list can be easily ...
0
votes
1answer
20 views

Set auto-fill in markdown mode, but exclude code block headers

I want to use auto-fill-mode in Markdown files. By default, it works fine, with one exception. I'm using the RMarkdown variant of markdown. This requires that code block headers remain on one line. ...
1
vote
1answer
35 views

What are these underlines shown for whitespace at the end of some lines?

The following screenshot shows Emacs 26.3 (GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian) editing a Markdown file: Note that on some lines of ...
1
vote
1answer
118 views

Slow markdown-mode as Emacs spends lots of time fontifying

Emacs on my Mac got upgraded when I upgraded some other package in Homebrew and now working with Markdown files is very slow. I'm now running the railwaycat/emacsmacport/emacs-mac package version with ...
0
votes
1answer
140 views

Syntax highlighting for comments in Magit commit buffers with custom core.commentChar

I frequently source the body of my GitHub PRs from my commits, and thus is makes sense to consider my commits to be made in Markdown (it is nice to have a markup language for commits anyway). Thus I ...
0
votes
0answers
18 views

forward-sexp in markdown-mode doesn't handle backquoted expressions

How do I modify the syntax table to make forward-sexp and backward-sexp correctly skip over backquoted (code) expressions? For instance, if my markdown file contains a line like The C statement is `...
1
vote
1answer
95 views

Is it possible to force `markdown-mode` during git commit?

I was using following answer: https://emacs.stackexchange.com/a/57535/18414 to set markdown on the .git/COMMIT_EDITMSG file. (add-to-list 'auto-mode-alist '("/\\.git/COMMIT_EDITMSG\\'...
1
vote
0answers
61 views

Problem with font in markdown-mode table

I am using variable-pitch for markdown-mode. Tables use fixed-pitch (markdown-table-face). The table aligns for regular text. It breaks alignment for links. The spaces are also underlined. ...
1
vote
2answers
517 views

markdown inline preview like it is done with preview-latex

I am completely new to markdown and would like to know if there is any package/mode which allows to live preview only parts of the document (mainly equations, tables and images) like it is possible ...
1
vote
1answer
25 views

How do I get flyspell to ignore pandoc citations in markdown

Flyspell regularly shows pandoc citations as a spelling error in markdown documents. For example @chu2017 will come up as a spelling error for 'chu'. How can I get Flyspell ignore the citations and ...
0
votes
0answers
63 views

Get Emacs Markdown markdown mode to use Rstudio pandoc

I installed markdown mode for Emacs. Now I need it to see a version Pandoc I have on my machine. Markdown Mode for Emacs I put this in my init file and loaded it. (custom-set-variables '(...
3
votes
0answers
69 views

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 ...
0
votes
0answers
72 views

Why am I getting `max-specpdl-size` error on one markdown file when opening via projectile but not dired?

I am getting a max-specdl-size error on only one .markdown file. I have increased the size via (setq max-specpdl-size 50000) to test, and I still get the error. This does not happen on any other ....
2
votes
0answers
31 views

Is it possible to disable font faces in Markdown for tables only?

I really like the markdown mode in Emacs (markdown-mode.el v2.4-dev) but when I have monospace in table cells the columns get out of alignment. Not only that, but at times the rendering kind of jerks ...
2
votes
0answers
540 views

Markdown and Latex highlighting (font lock) in R Markdown file

I am using polymode to edit rmarkdown files. Exporting to e.g. pdf is super simple and works very well. R code chunks are also properly highlighted. But: I do quite often use latex code inside (r)...
3
votes
1answer
490 views

How can Markdown mode follow links?

I found this today by chance: I visited the help file on split-string with C-h f split-strings: split-string is a compiled Lisp function in ‘subr.el’. (split-string STRING &optional ...
0
votes
1answer
287 views

How to make markdown-live-priview-mode use pandoc?

I'm having a problem where in markdown-live-preview-mode tables are not correctly converted to HTML from markdown. I'm using markdown-mode. I've tried using pandoc to create the HTML and pandoc ...
0
votes
1answer
54 views

In markdown-mode cursor goes to beginning of line when I type certain characters

In markdown-mode the cursor goes to the beginning of a line whenever I type any of (),[]{};:, this happens in both GUI and command-line emacs, this only happens in markdown-mode. How do I stop this ...
4
votes
1answer
357 views

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 ...
0
votes
2answers
225 views

ELPA list is missing markdown-mode according to list-packages

I'm trying to install markdown-mode using instructions on https://jblevins.org/projects/markdown-mode/, according to which I put into my init.el file (require 'package) (add-to-list 'package-archives ...
0
votes
1answer
30 views

Shortcut to actual previous line in markdown mode, or end of section

I use markdown-mode and often fold the tree. I sometimes need to go to the last line of a tree, e.g. if I adjust the tree heading and then want to work at the last leaf. I suppose a shortcut can take ...
0
votes
1answer
77 views

Text entered right-to-left in chunks using polymode

I use polymode when editing Rmarkdown files in Emacs 26.1 and have the following problem. I visit a new file, test.Rmd, and type the following at the top of the file (this creates a yaml chunk): --- ...
0
votes
0answers
26 views

Cursor skips over backquotes/code blocks in markdown-mode

I use markdown-mode for editing Markdown. When I'm trying to edit code blocks defined using backquotes (`) or multiple backquotes, my cursor skips over the backquotes, making it hard for me to edit ...
0
votes
1answer
1k views

How to set utf-8 encoding for *markdown-output* buffer?

I have emacs-24.5 installed on Windows 10. Many utilities are configured through cygwin, including perl. When in Markdown mode every so often after I press C-c C-c p to run the external markdown.pl ...
7
votes
1answer
698 views

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 ...
2
votes
1answer
290 views

Help needed to debug (very) slow markdown-mode

I come back to emacs after an eternity without using it. I used it before but now that I'm a grown up I'd like to understand what I do and how to do stuff. I use emacs mainly for markdown edit at the ...
2
votes
2answers
384 views

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, ...
1
vote
1answer
102 views

markdown-mode seems to ignore variables set in .dir-locals-el

I have a folder with some files written in markdown format that I would like to convert in html using markdown-mode. I want a local value for the variable markdown-css-paths, in order to have a ...
0
votes
1answer
37 views

Make flymd accept other file extensions

When I try to preview my markdown files I get this aggressive funny response: What’s wrong with you???! Don’t flyit if you are not viewing a markdown file. But I am! ;-) It's just that I use .txt as ...
3
votes
2answers
191 views

Assign TAB in markdown mode

Running emacs 25.2.2, general, evil and markdown-mode installed from MELPA. The problem is when I hit TAB on a heading in a markdown file, it does not cycle visibility of content. C-h k TAB shows it ...
4
votes
1answer
201 views

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?
2
votes
2answers
525 views

Why are code blocks and code literals displaying with large face in markdown

In markdown mode, all of the fenced code blocks and inline code literal strings are displaying with this very large font. The size is large, and also I'm pretty sure it isn't the same font as the ...
1
vote
0answers
114 views

Wierd behaviour and lag of markdown mode (due to indirect buffer?)

Problem There is severe lag(>10s some times) in my markdown document (14k words) which I run within emacs. It appears that Markdown-mode seems to be computing something everysingle time I type any ...
1
vote
1answer
644 views

dir-locals not working

I wanted to have wc-mode (a minor mode) enabled when I edit any markdown file in a specific directory. So, I created a .dir-locals.el file and added the following to it: ((markdown . ((wc-mode . t))))...
2
votes
3answers
411 views

Edit commit messages in markdown mode

I configured git so that it uses emacsclient when editing commit messages. The only problem is that these messages are edited in fundamental-mode. Which hook should I use to have these commit messages ...
2
votes
1answer
331 views

How do I hide markup in Markdown mode with use-package?

I'd like to hide the markup in my Markdown buffers. I can do that manually using markdown-toggle-markup-hiding. However I'd like to configure this once and for all in my init.el so that I don't have ...
2
votes
0answers
196 views

org-pretty-entities for markdown-mode

org-mode has the variable org-pretty-entities that allows for the display of LaTeX math as unicode characters. How could one get the same result in markdown-mode? It seems like this should be a ...
1
vote
0answers
454 views

Cannot load markdown-mode

Problem I've recently switched to NixOS and I'm having a couple of problems with my init.el. One I think is NixOS related and so I won't elaborate here, but I can't think of any NixOS component to ...
0
votes
1answer
181 views

Cannot define keybinding in markdown-mode

I'm trying to use the package checkbox together with markdown-mode. The checkbox documentation gives the following example on how to define a global keybinding for it's functionality: I'd recommend ...
1
vote
0answers
671 views

indentitation in markdown mode

I would like to have a double nested list in Makrdown Fill mode. For this I write in my markdown file * item 1 * item 1.1: * item 1.1.1 * item 1.1.2 Now I would like to add an * item 1.2: ...
0
votes
1answer
871 views

How to compile, view or preview using markdown-mode

I am using Emacs 25.1 on a Mac. When I try to view, preview or live export a simple markdown file using markdown-mode in Emacs I obtain the following error: /bin/bash: markdown: command not found(in ...
8
votes
4answers
1k views

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 ...
5
votes
1answer
401 views

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 | ...
1
vote
1answer
293 views

`markdown-mode` only renders some, not all, LaTeX strings

I'm using markdown-mode. I followed these instructions to render LaTeX math strings: http://jblevins.org/projects/markdown-mode/ I am rendering to HTML with markdown-export and markdown-live-preview-...
2
votes
0answers
27 views

polymode with fsharp-mode has trouble sending last line in code block to interactive

I just started setting up polymode I got ESS and r going nicely with markdown. (use-package markdown-mode) (use-package polymode) (require 'poly-R) (require 'poly-markdown) I was able to put r code ...
6
votes
2answers
511 views

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-...
2
votes
1answer
523 views

How can I hide formatting marks after the formatting they define has been applied in markdown mode?

I am using markdown mode with the modifications suggested in the excellent answer I received to a previous question. My aim is to have basic rendering capabilities within emacs itself so I can ...
1
vote
1answer
599 views

How to default markdown-mode's markdown-live-preview-mode to vertical split

Using markdown-mode, I can run M-x markdown-live-preview-mode (or C-c C-c l) and it will split the window horizontally and display the rendered markdown (i.e. the HTML) with eww in a window below the ...
2
votes
3answers
964 views

How to add four spaces selected region [duplicate]

I'm using Firefox extention It's all text, with it I can edit stackoverflow form text in Emacs. Therefore I often want to add four spaces before selected text to markdown codes. indent-region only "...
6
votes
2answers
2k views

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 ...