Questions tagged [markdown-mode]
The markdown-mode tag has no usage guidance.
79 questions
0
votes
1
answer
27
views
markdown mode gives error (invalid-read-syntax "?" 1176 26)
When calling markdown-mode I get this error (invalid-read-syntax "?" 1176 26). The backtrace is as follows:
read(#<buffer *load*>)
edebug--read(read #<buffer *load*>)
...
0
votes
1
answer
18
views
Markdown-mode: Remove secondary hash symbol in headings
In markdown mode, when you call (markdown-insert-header), the following gets outputted:
# Title #
How can I remove the secondary "#" so that the result is:
# Title
Thanks in advance
1
vote
0
answers
28
views
Emacs sometimes saves buffer to wrong file
I am working with Quarto, which is based on mixing Markdown with code snippets from various languages. Hence it relies on polymode.
Sometimes when I have multiple Quarto .qmd files open and want to ...
1
vote
1
answer
53
views
Showing markdown code background in "boxed" mode
When reading markdown in markdown-view mode, I'd like the markdown code to be "boxed" in the sense that the code has a different background throughout the entire window width. Currently, if ...
0
votes
1
answer
47
views
Exporting Markdown in Emacs and preserving line breaks
If I export a document from Markdown to html in Emacs it does not preserve line breaks. This is typical Markdown behavior. So,
Let the bird of loudest lay
On the sole Arabian tree
Herald sad and ...
1
vote
1
answer
65
views
Make backticks electric for markdown mode
I'm trying to use electric pair mode for backticks in markdown mode. The following code hasn't worked and throws and error whenever I type a backtick. How was it wrong?
(defvar markdown-electric-pairs ...
0
votes
1
answer
163
views
How to enable math expressions in markdown mode?
I have the following code saved as ex.md
---
title: "Page Title"
subtitle: "Page sub-title"
author: "Author name"
---
# head 1
hmm $x \times \pi$
and I preview with C-c ...
1
vote
0
answers
31
views
Fill-paragraph should retain "\ " (backslash-space)
In (Pandoc) markdown "\ " means non-breaking space.
When I fill-paragraph, there is a chance that
... 50\ cm ...
is converted to
... 50\
cm ...
which means something different.
Is there a (...
2
votes
1
answer
144
views
RefTeX reftex-citation not showing all entries and takes preceding word as argument
After initial setting up emacs with AuCTeX and RefTeX everything worked fine.
may not be the problem, see edit below
Now, for a porject I tried setting up RefTeX to work with markdown-mode with this ...
1
vote
1
answer
96
views
How to add numbers to all lines matching a certain regex?
I have a Markdown file like this:
# Title
## My Theme
Pellentesque dapibus suscipit ligula.
### Mine is yours
Donec posuere augue in quam.
## Your Theme
* Suspendisse potenti.
* Aenean in sem ac ...
5
votes
1
answer
119
views
Can Markdown mode help with generating the 2nd line in a Markdown table?
When I write a table like
| Syntax | Description | More columns ... |
| ----------- | ----------- | ---------------- |
| Header | Title | . |
| Paragraph | Text ...
0
votes
0
answers
32
views
Emacs is generating HTML file when opening markdown files
I don't know what is happening and how to debug this.
I moved my Emacs config from Fedora to Xubuntu 22.04 (that use older version of GNU Emacs)
and now each time I open markdown file (only once per ...
0
votes
1
answer
191
views
How do you generate a TOC (Table Of Contents) in markdown-mode?
The function needs to get at least the levels two (## title) and three (### title) titles.
1
vote
2
answers
94
views
How to set display margins for markdown-mode buffers?
Is there a way to set the display margins for markdown-mode buffers? I've read https://www.gnu.org/software/emacs/manual/html_node/elisp/Display-Margins.html and various suggested solutions but ...
0
votes
0
answers
97
views
org-mode headings renders markdown link syntax of inner code block, how to prevent it from happening?
I am using Doom Emacs with bundled org-mode and markdown-mode.
I have org-mode text snippet like this:
*** test
**** http://example.com
**** block
#+begin_src
http://example.com/
#+end_src
**** ...
2
votes
1
answer
213
views
Exporting org-mode to Markdown does not render the title?
I have the following in org-mode:
#+TITLE: My title
#+SUBTITLE: My ...
0
votes
1
answer
53
views
Start Emacs Markdown Mode in CONTENTS view
I've been trying to have Markdown Mode open all markdown files in CONTENTS view, i.e. all folded up. I can of course just hit S-TAB twice whenever I open a markdown file, but, with markdown-mode.el ...
0
votes
1
answer
126
views
Adjust how comments work in markdown-mode
How can I adjust how M-; (comment-dwim) works in markdown-mode? Specifically, I'd like for it to not use delimiters for each line. As an example, in Markdown mode, if I commend a line like
This is a ...
1
vote
0
answers
24
views
Does markdown-export have a bad interaction with save-excursion
I am trying to write an idle-timer to export my markdown file whenever I am idle. (I have the output loaded in a Chrome tab which is auto-reloading.)
I tried to do the following:
(defvar my--markdown-...
1
vote
1
answer
20
views
How to show all sections after cycling visibility?
After cycling visibility for some sections, is there a single key combination that will restore visibility to all subsections?
I was trying to isearch for a tab, and, instead of inserting a tab ...
2
votes
1
answer
876
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
1
answer
173
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. ...
2
votes
1
answer
189
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
1
answer
481
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
1
answer
245
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 ...
1
vote
1
answer
273
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
0
answers
172
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.
...
3
votes
2
answers
2k
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
1
answer
46
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
0
answers
132
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
'(...
5
votes
0
answers
250
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
0
answers
152
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
0
answers
61
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 ...
3
votes
0
answers
818
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)...
4
votes
1
answer
2k
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
1
answer
559
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
1
answer
120
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 ...
8
votes
1
answer
621
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 ...
1
vote
2
answers
492
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
1
answer
75
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
1
answer
119
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
0
answers
38
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 ...
1
vote
1
answer
2k
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 ...
10
votes
1
answer
2k
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
1
answer
568
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 ...
4
votes
3
answers
1k
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
1
answer
193
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
1
answer
44
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
2
answers
375
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
1
answer
354
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?