Questions tagged [markdown]
A markup language that focuses on human readability, widely used on the Web.
55
questions
0
votes
1
answer
66
views
Markdown viewer for file list
I'm looking for a command line Markdown viewer for many .md files somehow similar to image viewers.
I need:
simple/fast navigation: preferably left, right arrows (no combinations like :n, :p),
and a ...
1
vote
1
answer
30
views
Changing default editor for markdown bash_profile
I am pretty new to bash/zsh on Mac OX. I am trying to change my .bash_profile so that that all markdowns are opened with sublime when I enter open [filename].md in terminal. I have created synthetic ...
0
votes
2
answers
24
views
Simple filter to unhardwrap multiple paragraphs
I have many markdown files which are hardwrapped to 80 characters. I would like to copy these to paste into textareas (xclip -sel clipboard < file), but want them to wordwrap normally. This is ...
0
votes
0
answers
30
views
How can I use email subject in the body automatically with [neo]mutt?
Say I'm composing an email with the subject Test Subject. Ultimately, I want an HTML body with <title>Test Subject</title> in it. Now, this could either be done by creating the text/...
0
votes
1
answer
39
views
Validating flower brace{} liquid tag in markdown validator
WE have a markdown validator that authors use to validate their md files, One check in that is the liquid tag validation where we check for invalid liquid tags in the md files. My requirement is to ...
2
votes
3
answers
462
views
Modify URL in markdown link
I'm trying to modify a markdown file. In a file, there are many links like this one.
[string one](/stringtwo/#stringthree)
I'd like to change these to the following:
[string one](stringtwo.html#...
0
votes
1
answer
381
views
How to pretty output of grep for searching within markdown files?
I have a knowledge base (aka Zettelkasten) of markdown files. And I use searching with the next command grep -irn 'search request' *.md. All works fine.
But I'd like see output with the title of the ...
10
votes
1
answer
8k
views
convert markdown to pdf in commandline
what is the simplest tool to convert markdown to pdf in commandline?
I have found howtos where people suggest to use pandoc, but the required packages need gigabytes of dependencies:
apt-get install ...
0
votes
2
answers
313
views
Extract all links (including multiple links per line) in markdown file
Sample markdown file:
cat index.md
# Abstract
- To achieve [Work Life Balance](./WorkLifeBalance/WorkLifeBalance.md), first understand what it means and what are the requirements.
- Develop right **[...
1
vote
1
answer
1k
views
Markdown to PDF Converstion with Pandoc: Make pages a specific size, in inches
So I know you can use pagesize and geometry to set the page size of the PDFs Pandoc makes to presets (like a5, b5, etc), but is there a way to set a precise pair of dimensions? I'm going to be using ...
0
votes
1
answer
54
views
Replacig text inside multiple repeating patterns in same line
I have something like this;
I like reading **books** and taking **notes**
I was trying to get something like this;
I like reading <b>books</b> and taking <b>notes</b>
Tried ...
4
votes
1
answer
3k
views
Markdown & Pandoc : How to include a specific PDF page as image?
It is currently possible to insert a PDF as an image in markdown files through pandoc by doing this:
# Hello World

Then you convert that markdown file with pandoc:
...
2
votes
1
answer
1k
views
How to associate markdown files with a web browser?
Out of GUI-based software like ReText or Formiko, and using just a command-line tool like pandoc, is it possible to open markdown files (MIME type association) as an HTML file in a web browser, ...
1
vote
1
answer
142
views
Permissions problem when using ruby based snap 'mdl'
Because I don't understand Ruby, but want to use the ruby based program mdl (markdownlint), I have installed it using snap.
While I can run the program, if I try and set up a customizations in a ~/....
3
votes
0
answers
398
views
How can I add custom CSS to the result of the markdown command?
New to markdown...
I have a very simple markdown file, I am using the markdown command
markdown something.md -o something.html
Is it possible for me to inject my own css into the something.html file
...
9
votes
4
answers
5k
views
How do you search and print multiple matches per line with grep -o?
I have a mkdocs instance and am writing a script to print internal links in a page. I cannot get grep to print only the matches if there are multiple per line.
This is what I currently have:
$ grep -...
0
votes
1
answer
169
views
Distro agnostic markdown to rtf/html converter
Is there a tool that comes preinstalled in most Linux distros that would let me convert a markdown file to an HTML or an rtf file?
3
votes
1
answer
577
views
Converting html anchors to markdown using sed regex
I've been slowly converting a blog of mine to markdown. The final thing to do is replacing all the html anchors with markdown.
I've come up this sed regex, which for all intents and purposes should ...
1
vote
1
answer
388
views
Append file name to beginning of [Markdown] file recursively
I have a folder with a whole lot of folders with a whole lot of Markdown files in each. What I'd like to do is recursively (if possible) prepend the file name as a heading in each file.
So, given foo....
1
vote
1
answer
800
views
Is it possible to have an auto-refresh while editing a markdown file with mdp?
mdp is a console viewer for Markdown files and I find it is a very helpful tool.
Is it though anyhow possible to make the tool/the console to auto-refresh so that I have immediate visual feedback ...
1
vote
1
answer
922
views
Bash - How do I loop through sub directories and execute this command [duplicate]
Well, Before I decided to post this I have tried all the solutions provided here that are related to my issue. And I know it's a simple but this is my first time ever dealing with Bash .. so please ...
1
vote
1
answer
384
views
markdown table to html table converter in CentOS
I am looking for a way to convert a markdown table into a html table using the shell.
I know this tool: https://linux.die.net/man/1/markdown
This does a great job and is exactly what I am looking for, ...
1
vote
0
answers
704
views
How to ensure the text file will be read as Markdown file by an external user?
Mime type is set for md extension in the following file:
$ cat /etc/mime.types | grep markdown
text/markdown md markdown
But, on checking the Mime type of .md file ...
1
vote
1
answer
26
views
MultiMarkdown processors: Fonts?
I just found MultiMarkdown, which is awesome. I've installed the GitHub official application from https://github.com/fletcher/MultiMarkdown-6 on my Gentoo box, and I'm using it to create HTML pages ...
4
votes
2
answers
514
views
How to get traditional email clients to send email which appears normal in Gmail?
A considerate friend informed me recently that emails I send (with Neomutt; could be Mutt or Gnus or Pine) look funny on his device:
Apparently Google doesn't invest much effort in properly ...
4
votes
1
answer
1k
views
How to associate *.md files with my editor? [closed]
I want to open markdown files by double clicking on them in Sublime Text.
I tried every possible way, but I could not achieve it.
I created the mimeapps.list file with this content:
[Default ...
0
votes
1
answer
198
views
Lightweigtht pager with links?
Are there any pagers/readers/viewers for the use inside the Linux terminal that can follow links to the same page and different files (not necessarily on the net) which have an simpler markup language ...
5
votes
1
answer
896
views
Is there an easy way to strip all markdown from a text file from the command line?
Is there an easy way to strip all markdown from a text file from the command line?
A solution that is installable with apt is preferable. But failing that apt is better than pip is better than gem is ...
4
votes
1
answer
993
views
Extend syntax highlighting for Markdown in Kate?
Is there a plugin/xml file or any way to extend the capability of Kate to highlight Markdown?
I am really comfortable with Kate (using version 15.12.3) and I use it to write logs. For plain-text ...
19
votes
3
answers
14k
views
Markdown to PDF conversion in Pandoc: making pages landscape?
I am converting a document from Pandoc markdown to .pdf.
I run the conversion like this, and everything works fine:
pandoc test.MD -f markdown -o test.pdf
However, I would like pandoc to output my ...
2
votes
1
answer
84
views
Getting modern rss2email to emit reference Markdown links
Back in rss2email 2.70, links were emitted as Markdown reference links at the end of a post:
blah blah [blah blah][1] blah bleh
[1]: http://www.example.com/blah-blah/
URL: http://www.example.com/...
2
votes
1
answer
1k
views
How to match Markdown Setext headers in in exuberant ctags
I am working on a language definition for pandoc markdown in ctags. However, I have problems matching Setext headers in the regex which are defined by multiple = or - in a new line under the header ...
8
votes
4
answers
8k
views
Get Apache to serve Markdown as HTML
Like many people, I prefer writing in Markdown - is there a mod_markdown or similar that will let Apache serve Markdown content but render as HTML ?
1
vote
1
answer
1k
views
PDF output with correct spaces in code examples
I have been using rst2pdf and pandoc to convert the following reStructuredText into PDF:
This is a python example::
def main():
print("Hello World!")
if __name__ == '__main__':
main(...
5
votes
1
answer
844
views
How can I get the recoll package to index markdown (.md) files?
From what I understand markdown is pretty similar to text and html, which are all indexed by the recoll search engine.
However my markdown files with extension .md are not being indexed. I have ...
4
votes
3
answers
443
views
How to merge these commands into one?
This is what I am wanting to do:
Convert a folder of HTML files into markdown, also copying over the the XML metadata of each of the HTML files by converting into YAML.
I have done research and came ...
4
votes
5
answers
6k
views
How to convert bash shell script to Markdown?
Imagine one has been working on a bunch of deploy scripts.
These shells scripts are heavily documented with comments and links and are meant to be read by humans.
Wouldn't it be handy to convert ...
2
votes
2
answers
2k
views
Concatenate file contents AND names
I've been writing for many months. The files I create are dated files named like 2011-06-13.markdown with daily content. I've decided I want to have all the writing in one file instead but I'd like ...
1
vote
2
answers
48
views
Transform custom tags with arguments
I want to write my diploma theses with markdown. Sadly, there is no perfect editor and so I have to improvise. For bibtex citations I want to transform my own definition with some sort of bash-filter ...
1
vote
1
answer
448
views
Gummi: Extend with Markdown functionality, or suggest Markdown editor
I use Gummi for my LaTeX work, and I use online Markdown1) editors, for quick note taking, making protocols, and making quick handouts, etc.
I'd like to combine both. Is there any way, to extend ...
3
votes
1
answer
3k
views
Customising markdown syntax highlighting in Geany
I'm using Geany 1.23.1 on Lubuntu 13.10.
I've copied over filetypes.markdown from /usr/share/geany to ~/.config/geany/filedefs.
filetypes.markdown has the following content:
# For complete ...
14
votes
1
answer
4k
views
generate a hyperlinked table of contents and insert into existing PDF
I have an existing PDF (without any corresponding source file), and a text file which is a list of items referencing sections within the PDF file, along with a page number for each item. I would like ...
17
votes
2
answers
4k
views
Copy markdown input to the clipboard as rich text
I'm about to get involved in some collaborative prose writing with a friend of mine via email. As a regular person, he will of course be using MS Word document formats; as a massive nerd, I prefer to ...
12
votes
1
answer
3k
views
Save HTML from clipboard as markdown text
I want to be able to highlight a section of a web page and copy it to the clipboard then save it to my local disk as markdown. I need an efficient way to do that.
My current cumbersome method is:
...
5
votes
1
answer
2k
views
Replace every odd or even occurrence of a pattern in a file
I want to replace either every odd or even occurrence of a pattern. Look at the following example:
$ echo aaaaa | sed -e 's/a/b/' -e 's/a/c/' -e 's/a/b/' -e 's/a/c/' -e 's/a/b/'
bcbcb
Is there some ...
7
votes
2
answers
12k
views
How to compile a selection of Markdown documents
Processing a single Markdown file to HTML:
pandoc -f markdown -t html inputfile.md
Although I can use Pandoc like this to process individual Markdown files, I want to compile a list of selected ...
3
votes
2
answers
391
views
Concatenate block of lines with following block of lines
I am trying to process some text exported from lecture slides using pdf2text. The bullet points of some slides show up like this:
title for the list
-
-
-
a bullet point text
another bullet point ...
3
votes
1
answer
289
views
Syntax highlighting of latex code blocks in ikiwiki
Is it possible to get syntax highlighting for LaTeX code blocks in ikiwiki (just something like it is automatically done in tex.sx)?
To avoid misunderstandings: I don't mean math output produced for ...
5
votes
2
answers
702
views
Generic Preprocessor adds extra whitespace
Following up on this article I use GPP to empower Markdown parser pandoc with some macros. Unfortunately, gpp seems to copy all whitespace into the result.
For example, consider file test.md
% Title
...
6
votes
1
answer
2k
views
How can I git diff markdown (.md) files
I have some markdown files but I can't git diff them.
No result at the command line and not supported in gitg (visual git)
Is that possible with the files as they are, without converting them to ...