Skip to main content

Questions tagged [markdown]

A markup language that focuses on human readability, widely used on the Web.

Filter by
Sorted by
Tagged with
0 votes
1 answer
64 views

curl webpage and convert to markdown

having a dilemma with downloading webpages and converting them to markdown, for example: F=$(curl -O --silent https://www.guru3d.com/story/msi-teases-spatium-m560-ssd-with-innovative-nonmetallic-vc-...
Ve-Khan's user avatar
0 votes
1 answer
276 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 ...
sZpak's user avatar
  • 491
1 vote
1 answer
84 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 ...
Sabina Brunswicker's user avatar
0 votes
2 answers
27 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 ...
Iiridayn's user avatar
  • 320
0 votes
1 answer
41 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 ...
Anonymous's user avatar
2 votes
3 answers
624 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#...
shin's user avatar
  • 759
0 votes
1 answer
593 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 ...
kryn's user avatar
  • 3
15 votes
2 answers
13k 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 ...
Martin Vegter's user avatar
0 votes
2 answers
441 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 **[...
Porcupine's user avatar
  • 2,056
2 votes
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 ...
Alexis Purslane's user avatar
0 votes
1 answer
62 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 ...
atheros's user avatar
  • 256
4 votes
1 answer
4k 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 ![My PDF file inserted](my-pdf.pdf) Then you convert that markdown file with pandoc: ...
Creasixtine's user avatar
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, ...
Anas R.'s user avatar
  • 161
1 vote
1 answer
169 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 ~/....
mikemtnbikes's user avatar
3 votes
0 answers
424 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 ...
hba's user avatar
  • 927
9 votes
4 answers
6k 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 -...
Jake's user avatar
  • 101
0 votes
1 answer
189 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?
Pratyush Das's user avatar
3 votes
1 answer
607 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 ...
devilkin's user avatar
1 vote
1 answer
425 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....
hoobydooby's user avatar
1 vote
1 answer
941 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 ...
J. Doe's user avatar
  • 177
1 vote
1 answer
969 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 ...
Sam Lee's user avatar
  • 13
1 vote
1 answer
407 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, ...
cmosig's user avatar
  • 123
1 vote
0 answers
787 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 ...
Porcupine's user avatar
  • 2,056
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 ...
ARaspiK's user avatar
  • 41
4 votes
2 answers
526 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 ...
Metamorphic's user avatar
  • 1,199
4 votes
1 answer
2k 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 ...
dmin's user avatar
  • 213
0 votes
1 answer
216 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 ...
Kyuvi's user avatar
  • 109
5 votes
1 answer
991 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 ...
Att Righ's user avatar
  • 1,226
4 votes
1 answer
1k 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 ...
Honeybear's user avatar
  • 268
19 votes
3 answers
15k 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 ...
patrick's user avatar
  • 1,022
2 votes
1 answer
85 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/...
user's user avatar
  • 29.3k
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 ...
Cutú Chiqueño's user avatar
8 votes
4 answers
9k 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 ?
warren's user avatar
  • 1,858
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(...
Anthon's user avatar
  • 79.8k
5 votes
1 answer
885 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 ...
Ivar Persson's user avatar
4 votes
3 answers
456 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 ...
st john smith's user avatar
4 votes
5 answers
7k 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 ...
cavalcade's user avatar
  • 141
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 ...
user avatar
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 ...
NaN's user avatar
  • 113
1 vote
1 answer
456 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 ...
polemon's user avatar
  • 11.6k
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 ...
user avatar
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 ...
Adam Spiers's user avatar
17 votes
2 answers
5k 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 ...
evilsoup's user avatar
  • 6,847
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: ...
MountainX's user avatar
  • 18.2k
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 ...
evilsoup's user avatar
  • 6,847
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 ...
johntait.org's user avatar
  • 1,372
3 votes
2 answers
392 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 ...
Bengt's user avatar
  • 751
3 votes
1 answer
290 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 ...
student's user avatar
  • 18.5k
5 votes
2 answers
715 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 ...
Raphael's user avatar
  • 2,065
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 ...
Michael Durrant's user avatar