10 votes

Markdown preview in Emacs using pandoc

After a while, I found the answer myself: In a nutshell: Use a combination of Eww and markdown mode, and configure markdown mode to render markdown with pandoc. Alas, easier said than done. Update ...
henning's user avatar
  • 112
9 votes
Accepted

Markdown-style block quotes in org-mode

UPDATE: As of org-mode 9.2, the org-structure-template system has changed. Inserting a template is now done via C-c C-,. To add a shortcut for emacs-lisp in this new system, use the following snippet:...
EFLS's user avatar
  • 1,572
9 votes

How do I do live Markdown previewing as I'm writing it?

As of markdown-mode 2.1, this is functionality is provided in markdown-live-preview-mode (bound to C-c C-c l). It uses eww for rendering the HTML. Screenshot:
Wilfred Hughes's user avatar
8 votes
Accepted

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

The answer to question 2 is yes! If you have an image cat.png in the same folder as you org file, you can insert it using simply [[./cat.png]] and toggle inline display with C-c C-x C-v. Here's a link ...
Lino Ferreira's user avatar
7 votes
Accepted

How can Markdown mode follow links?

markdown-follow-thing-at-point (C-c C-o) and also markdown-follow-link-at-point will follow links. If you have a link like [filelink](/path/to/file.md) then calling one of the above functions while ...
mclear's user avatar
  • 1,535
6 votes

How to migrate Markdown files to Emacs org mode format

Here is an emacs function that will convert the current buffer's content to orgmode format using pandoc: (defun markdown-convert-buffer-to-org () "Convert the current buffer's content from ...
user905686's user avatar
5 votes
Accepted

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

I have found a workaround using ox-gfm
Francesco Cadei's user avatar
5 votes

How to get align-regexp to help line up Markdown tables properly?

I wouldn't use align-regexp but the wonderful orgtbl-mode for this: if you enable this minor mode, it will automatically recognize the table, and change its size as needed (use tab to move around in ...
Rémi's user avatar
  • 1,607
5 votes

How to migrate Markdown files to Emacs org mode format

Try this new cool package: org-pandoc-import.
Leu_Grady's user avatar
  • 2,460
5 votes
Accepted

Change AUCTeX behavior inside an environment

You can use mmm-mode available at GNU Elpa. There are examples how mmm-mode is to be configured. In your case the following Elisp lines in your init file should work. When you open a LaTeX file ...
Tobias's user avatar
  • 33.1k
4 votes
Accepted

Insertion of code blocks in sx.el

If you select a region and run the command markdown-insert-pre (C-c C-s p for me), it will mark the selected region as preformatted text. I am not sure if there is any difference, but for me it seems ...
elethan's user avatar
  • 4,805
4 votes
Accepted

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

This can be fixed by calling M-x customize-group RET markdown-faces while in Markdown mode. It opens a menu of various font face settings. Under Markdown Code Face, uncheck/delete everything and then ...
Adam Michael Wood's user avatar
4 votes
Accepted

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

Any lines that could be confused as Org mode markup (e.g. both of the lines in your example block) can be quoted by preceding them with a ,: #+BEGIN_SRC ,* User-defined Markers ,** MARKER_1 #+END_SRC ...
NickD's user avatar
  • 29.2k
4 votes

Convert region/subtree from Markdown to org

You can select the pasted-in region (if you do it right after you paste it in, it should already be marked) and then run pandoc on the region with C-u M-| pandoc -f markdown -t org RET. The prefix ...
NickD's user avatar
  • 29.2k
4 votes
Accepted

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

Yes it is possible (at least with Emacs 27 running locally) with M-x markdown-toggle-inline-images or C-c C-x TAB
Marioba's user avatar
  • 766
3 votes
Accepted

Help needed to debug (very) slow markdown-mode

To debug performance problems, one approach is to use the built-in profiler: M-x profiler-start RET RET <reproduce the slowdown, ideally for a good 10s or so> M-x profiler-report RET Then ...
Stefan's user avatar
  • 26.3k
3 votes

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

You could also just use ox-pandoc, which does all this properly. Though you need to have pandoc installed.
mclear's user avatar
  • 1,535
3 votes
Accepted

dir-locals not working

To elaborate on theldoria's comments: If wc-mode is a major mode then either: ((markdown-mode . ((mode . wc)))) or: ((markdown-mode . ((eval . (wc-mode))))) If wc-mode is a minor mode, then: ((...
phils's user avatar
  • 50.4k
3 votes

multi-mode with markdown and language

For markdown, I would strongly recommend using polymode. Currently, polymode is distributed with a special mode that will allow you to edit these regions with the appropriate major mode. If you're ...
Xaldew's user avatar
  • 1,221
3 votes
Accepted

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

markdown-hide-markup needs to be set before markdown mode starts, so the markdown-mode-hook probably doesn't do anything. But it's buffer-local, so I think you need to use setq-default instead of setq....
amitp's user avatar
  • 2,521
3 votes

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

Use the ox-gfm package The gfm part in the package name stands for "Github Flavored Markdown". This package is available at MELPA. The source code can be found at this repository at Github. ...
rdrg109's user avatar
  • 408
3 votes
Accepted

How to get emacs count text words only without counting words in comments, code blocks, and markups in markdown?

EDIT another alternative A third easy alternative is to use some external markdown parser like e.g. marko (install using pip install marko). Then (for Marko) use the following command from your .md ...
dalanicolai's user avatar
  • 7,735
2 votes

CSV to Markdown table

The Melpa package archive has markdown-mode. My currently installed version is markdown-mode-20180115.1905. If you have added melpa to package-archives correctly you can install markdown-mode via M-x ...
Tobias's user avatar
  • 33.1k
2 votes
Accepted

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

The function browse-url-url-encode-chars translates https://en.wikipedia.org/wiki/Blue_(disambiguation) into https://en.wikipedia.org/wiki/Blue_%28disambiguation%29 if used in the following way: (...
Tobias's user avatar
  • 33.1k
2 votes

yaml frontmatter in org mode

Don't see what version you are running but the solution is crazy simple. Mine didn't work at first (because i used yml not yaml) Those two file types are the same thing. #+BEGIN_SRC yaml #+END_SRC
LeeRuns's user avatar
  • 123
2 votes

Unable to export markdown files with devanagari characters

You can try to implement a function like this: (defun pandoc-md2html () "Compile markdown file to HTML, using pandoc." (interactive) (when buffer-file-name (message "Pandoc markdown to HTML ...
Maxim Kim's user avatar
  • 1,761
2 votes

Markdown-style block quotes in org-mode

This answer is becoming more a comment (third edit). If you feel it should be deleted, I have no problem in doing that. I was looking for this functionality, in order to do in org mode what I do in a ...
boclodoa's user avatar
  • 141
2 votes

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

In addition to Adam Michael Wood and lawlist: C-u C-x = - good way to get information about font symbol In appered buffer you should follow that paragraph: There are text properties here: and visit ...
user28828's user avatar
2 votes
Accepted

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

The reason I was having this problem is that I didn't have (require 'poly-R) in my init file. I only had (require 'poly-markdown). After adding (require 'poly-R), I can now press Enter within a chunk ...
riley.finn's user avatar
2 votes

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

That's either a bug or a feature in the ox-gfm package. Basically, the ox-gfm package defines an exporter that derives from the ox-md exporter, which derives from the ox-html exporter. The html ...
db48x's user avatar
  • 17.6k

Only top scored, non community-wiki answers of a minimum length are eligible