Questions tagged [markdown]

Markdown is a lightweight markup language for creating formatted text using a plain-text editor. https://daringfireball.net/projects/markdown/

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 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 ...
user avatar
  • 1,472
0 votes
0 answers
18 views

emacs + rmarkdown not cross-referencing figures, tables, and equations

the example from https://bookdown.org/yihui/rmarkdown-cookbook/cross-ref.html does not work for me. I simply get references like "Figure @ref(fig:cars-plot)." appearing in the pdf or html ...
user avatar
2 votes
0 answers
53 views

Can word-wrap / visual-line-mode have different right margins per paragraph?

When visual-line mode is enabled, words wrap at the window edge. When the window is wide, this makes much too long of a line for comfortable reading. To fix that I have found visual-fill-column-mode, ...
user avatar
  • 140
0 votes
0 answers
17 views

How to properly display info in lsp-doc window?

I am using lsp-doc package with several languages (C++, Rust, etc). For all languages, the doc window shows the text verbatim, without converting markdown language into properly formatted output (with ...
user avatar
1 vote
1 answer
177 views

How to export a table as a Markdown table when using org-md-export-to-markdown?

The current behavior of org-md-export-to-markdown is to export Org Mode tables as HTML tables. I would like tables to be exported as Markdown tables (as explained here).
user avatar
  • 286
1 vote
0 answers
104 views

Polymode very slow in Rmd files

I am struggling with emacs constantly hanging as soon as I move the cursor into a code chunk in Rmd files. It spends about two seconds moving the cursor after I hit an arrow key. Can you help me get ...
user avatar
2 votes
1 answer
556 views

Is it possible to displaying Inline Images in Emacs markdown-mode

I am using GNU Emacs 26.3 inside a remotely connected linux machine. I was wondering is it possible to display inline images in Emacs markdown-mode? Seems like it is possible (link) in org-mode? Using ...
user avatar
  • 1,102
1 vote
1 answer
184 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 ...
user avatar
  • 301
1 vote
1 answer
113 views

How to resize images when exporting to Markdown format?

Is there an equivalent of #+attr_html: :width 500px for Markdown format ?
user avatar
1 vote
0 answers
77 views

Editing helm-bibtex citations in markdown

Helm-bibtex can insert one or multiple (with C-space) citation in some markdown document. I have, however, not found a way to edit these citations afterwards using helm-bibtex. If I call helm-bibtex ...
user avatar
  • 11
2 votes
1 answer
237 views

Convert orgmode to Rmd

As the title says, I have an orgmode file I have been using with ess and exporting to TeX which has been going very well. However, I need to now export to html for reasons out of my control, and was ...
user avatar
  • 135
0 votes
2 answers
73 views

How can I paste a defvar into the minibuffer?

I've written a regular expression to transform Markdown links into Org Mode links and I've stored it into a variable. (defvar markdown-link-to-org-regexp "s/\[\(.+\)\](\(.+\))/[[\2][\1]]") ...
user avatar
1 vote
2 answers
122 views

Convert region/subtree from Markdown to org

I often have Markdown text in my clipboard that I would like to insert into an org file. After pasting the text into my org-mode file, is there a quick way to convert it to org format? For example, ...
user avatar
  • 154
0 votes
1 answer
94 views

How do I set flycheck-markdown-mdl-rules

I'm trying to get FlyCheck to ignore a rule used by mdl for checking syntax for.md files. I'm not very lisp or emacs savvy, but I've added this code to my personal.el file. ;; Turn off mdl message [...
user avatar
0 votes
3 answers
135 views

Avoid "`timestamp-wrapper`" span around timestamps when exporting org to markdown

Version info: Emacs: 26.3 Org: 9.1.9 Am trying to export org notes to markdown format for publishing. Am using the org-gfm-export-as-markdown to preview the markdown that will be generated. Later I ...
user avatar
  • 103
1 vote
0 answers
88 views

Displaying markdown in EIN

I've recently started working with EIN, and I have it mostly working now (sans autocompletion unfortunately...). There's still something I'm struggling with which I'm not sure is even possible: is ...
user avatar
1 vote
1 answer
180 views

set org-mode as a source-language in an org-mode document

I want to export an org-mode document to markdown. My document contains some content like this: #+BEGIN_SRC * User-defined Markers ** MARKER_1 #+END_SRC I would like to demonstrate how someone ...
user avatar
  • 153
1 vote
0 answers
419 views

How to export an underscore in org-mode, using markdown or gfm, without producing a backslash escaped underscore `\_`?

Given a file: #+OPTIONS: ^:nil * heading this is some text_to_export C-c C-e m m or M-x org-md-export-as-markdown yields: # heading this is some text\_to\_export HTML export does not add the ...
user avatar
  • 151
2 votes
0 answers
170 views

pandoc: getCurrentDirectory:getWorkingDirectory: permission denied (Operation not permitted)

I'm trying to render the output of a markdown file using C-c C-c p. On doing so, a webpage opens on my browser displaying pandoc: getCurrentDirectory:getWorkingDirectory: permission denied (Operation ...
user avatar
  • 201
4 votes
1 answer
665 views

Package for live inline rendering for markdown/org mode text with css styling?

Currently, I use Typora (a markdown editor) for all my personal notes and documentation. After seeing the capabilities of emacs in a colleague's spacemacs setup, I am very interested in switching from ...
user avatar
  • 143
1 vote
1 answer
33 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 ...
user avatar
2 votes
0 answers
37 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 ...
user avatar
  • 329
4 votes
1 answer
108 views

Change AUCTeX behavior inside an environment

I am using the LaTeX markdown package to insert quick notes in my document. I would like Emacs to switch to markdown mode inside the markdown environment so it for example won't automatically re-...
user avatar
3 votes
1 answer
790 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 ...
user avatar
  • 1,489
0 votes
1 answer
77 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 ...
user avatar
0 votes
0 answers
331 views

How to load image using iimage-mode when I first open a markdown file?

I have a file which embeds an image ![](file://tmp.jpg) I have added iimage mode to the markdown mode hook and even added recenter to it (add-hook 'markdown-mode-hook 'iimage-mode) (add-hook '...
user avatar
2 votes
1 answer
151 views

Polymode changes from ESS-mode to Markdown-mode whenever I press enter

When I am editing .Rmd file within a polymode chunk, the mode switches from ESS to Markdown mode whenever I press enter. However, it switches back to ess-mode whenver I save the file. I will try ...
user avatar
0 votes
1 answer
80 views

Characters replaced with angled bracket sequence, possibly due to encoding

I have files in Markdown, saved in a Dropbox folder. One of them replaces characters with angled bracket sequences. For example a git diff no-index between the saved file and a copy-paste of the text ...
user avatar
  • 1,489
1 vote
2 answers
359 views

How do I write a function to replace specific Markdown text?

At work, I mostly use Emacs for all my programming and text editing but I wouldn't really say I'm a pro. I'm more like beginner or intermediate so I'm not sure if this is really even a question. I ...
user avatar
  • 303
2 votes
1 answer
339 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 ...
user avatar
2 votes
2 answers
2k views

How do I live preview markdown, rendering math, checkboxes, etc.?

I’m using Spacemacs with markdown-mode and I’ve configured it according to Jason Blevins’ guide. Other things I’ve tried Pandoc works pretty well except when I set the —lua-filter=task-list.lua flag ...
user avatar
0 votes
1 answer
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 ...
user avatar
  • 203
3 votes
3 answers
2k views

Markdown-style block quotes in org-mode

I'm new to org-mode. I'm liking it so far. The one growing pain that I have is missing Markdown-style block quotes: I would like to start a line with > to quote it. How would I go about writing an ...
user avatar
3 votes
1 answer
167 views

Render markdown in mu4e buffers

I recently moved to mu4e for my email and it works great except that the way my university formats emails makes them look really weird in emacs (light grey background, white foreground). I was advised ...
user avatar
  • 31
2 votes
1 answer
59 views

Unable to export markdown files with devanagari characters

Running emacs 25.2.2. And markdown installed from Melpa. If I export a file with devanagari characters, it produces a file sans devanagari characters! I did a bit of research and found out that ...
user avatar
  • 1,668
3 votes
2 answers
238 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 ...
user avatar
  • 1,668
5 votes
3 answers
3k views

How to export Markdown from Org-mode with ``` syntax?

I can export Markdown from Org (using C-c C-e) but #+BEGIN_SRC lang ... #+END_SRC is not exported as i expected as: ```lang ... ```. I would like that the code source will be replaced with ``` (...
user avatar
2 votes
2 answers
684 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 ...
user avatar
1 vote
1 answer
886 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))))...
user avatar
  • 1,668
2 votes
1 answer
1k views

Problem with Org mode's export to markdown

I'm trying to use Org mode's export to markdown, and am finding some unexpected results. For a file: * Section This is some test.[fn:1] @@markdown:This should appear in markdown export.@@ * ...
user avatar
  • 636
3 votes
1 answer
226 views

Convert math in org file to markdown file correctly

I'm trying to convert/export a org file to Markdown. Most Markdown supports math with $x^2$ or $$x^2$$. I tried ox-gfm and pandoc, but they don't seem to handle it correctly: org file: \[x^2\] $$x^...
user avatar
  • 131
0 votes
2 answers
2k views

yaml frontmatter in org mode

When exporting and org file in emacs to either html or md for a jekyll-based web page, the yaml front matter gets twisted. As suggested here, I have attempted enclosing it in an html block in the ...
user avatar
  • 109
2 votes
1 answer
416 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 ...
user avatar
  • 278
4 votes
1 answer
2k views

How to (correctly) hex encode a URL so that it becomes a valid address I can paste into my web browser?

Here is a valid URL which loads the intended page when I paste it into my browser: https://en.wikipedia.org/wiki/Blue_(disambiguation) For reasons I will explain later, I want to hex encode the last ...
user avatar
0 votes
0 answers
204 views

org-mode markdown broken

I install (latest) org-mode on emacs 25.1 from http://orgmode.org/elpa/ like this (use-package org :ensure org-plus-contrib :defer t) (require 'ox-md) If I try to export the draft of my book (...
user avatar
  • 1,690
4 votes
0 answers
94 views

Typing in Live-Rendered Markdown

I know there are ways to preview markdown as you type but is there a way to avoid this duplication of text (rendered and pain text in different buffers)? Basically, I want to type in the preview. ...
user avatar
  • 845
2 votes
1 answer
270 views

multi-mode with markdown and language

I swear there used to be something like this. I'm writing a lot of Markdown with embedded code. I would like to have EMACS treat code in GitHum fenced code according to the default mode for that ...
user avatar
1 vote
0 answers
22 views

Detect a region in markdown and run a compilation

It would be really useful if emacs could detect the cursor is currently inside a code-block in my markdown-file and compiles the fragment automatically. I am editing a large markdown file with a lot ...
user avatar
  • 111
0 votes
0 answers
101 views

Does 25.1 allow Markdown viewing?

With the new 25.1 installed, I'm wondering if there is a better way to view a Markdown inside an Emacs buffer. Would this involve xwidget? Not sure how to enable/install xwidget on my new Emacs 25.1.
user avatar
  • 2,717
7 votes
1 answer
3k views

Markdown preview in Emacs using pandoc

Platform: Windows 7, Emacs 24.2, Pandoc 1.17.2 Scenario: I am writing a markdown file in Emacs. I need to use pandoc to render the output, because it supports citations (using pandoc-citeproc). ...
user avatar
  • 314