Questions tagged [markdown]

Markdown is a markup language which can allow for plain-text documents to be transformed into HTML and other formats.

Filter by
Sorted by
Tagged with
36 votes
4 answers
3k views

Regex to parse horizontal rules in Markdown

I'm the current maintainer of Showdownjs, a markdown parser off which PageDown (stackexchange's markdown parser) is based on. Showdown uses the following regex to parse horizontal rules: ...
Tivie's user avatar
  • 495
15 votes
2 answers
2k views

Markdown to HTML

...
bjb568's user avatar
  • 659
12 votes
2 answers
531 views

Application for converting markdown to PDF

First time writing C in a long time and would like some code review to try and improve my code. I have some specific questions, but first an introduction to the code. The application is a simple ...
Fredrik Wallgren's user avatar
12 votes
1 answer
5k views

Markdown Display in WPF

I wanted to display a markdown document in WPF sensibly without relying on an HTML rendering system. I wrote a control based on the RichTextBox, and used Microsoft'...
user avatar
11 votes
4 answers
767 views

Markdown static blogger program

I was hoping I might get some of the brains in Stack Overflow to take a look at my Python static blogger application. I've been using it a few years in a pretty hacked up form. Lately I decided to ...
Mike Shea's user avatar
  • 309
11 votes
2 answers
285 views

Markdown Markup Editor: MK2

Following on from this question I have added some more functionality to Markdown Markup, and made it more WPF idiomatic. It now supports saving data from any of the four boxes, and loading Markdown ...
Der Kommissar's user avatar
10 votes
1 answer
1k views

Idiomatic clojure code in a markdown parser

Some time ago I created a markdown parser in clojure and I would like to get some feedback, since I'm a clojure noob in the first place (is the code understandable?/is it idiomatic?/can some things be ...
sloth's user avatar
  • 718
9 votes
3 answers
669 views

HTML to Markdown converter

I've made a simple HTML→Markdown converter in Javascript and am looking for any feedback. For now, I've basically used Stack Exchange's /editing-help as a guide as ...
ᔕᖺᘎᕊ's user avatar
8 votes
1 answer
298 views

Markdown to HTML, again

I made another markdown parser. (original, this one on github). Look, I'm not crazy (sorta), I just like making markdown parsers… ...
bjb568's user avatar
  • 659
8 votes
0 answers
322 views

In emacs markdown-mode making the link live and URL invisible in inline links

A few years ago I modified version 1.8.1 of Jason Blevins's markdown-mode for Emacs so that when showing inline links the URL is hidden, and so that you can follow the link simply by hitting Enter. If ...
kuzzooroo's user avatar
  • 369
7 votes
3 answers
649 views

Print code-fenced sections of a Markdown document

Original code and demo at this gist. Given a Markdown document like ...
wchargin's user avatar
  • 1,169
7 votes
2 answers
345 views

Convert an object to an ordered by SemVer Markdown list

For a small personal project, I am looking to convert an object to an ordered by SemVer Markdown list. You can find the original code for the sort logic here and here for the writing into Markdown ...
aloisdg's user avatar
  • 561
7 votes
2 answers
319 views

Fetch StackOverflow questions and save them to a markdown table

I'm trying to write a script that would (a) fetch StackOverflow questions and (b) update a markdown table with new entries. With github actions I automated this script to run daily. Idea borrowed from ...
help-ukraine-now's user avatar
7 votes
1 answer
177 views

A character-by-character inline markdown parser

...
bjb568's user avatar
  • 659
6 votes
1 answer
899 views

Markdown Markup Markleft Markright Editor

I have a blog that I occasionally post to, but it's a PITA because of the fact that it has it's own WYSIWYG editor and doesn't support Markdown. So I have to switch the WYSIWYG editor to the HTML ...
Der Kommissar's user avatar
6 votes
1 answer
927 views

Command line todo list manager

This is a tiny project of mine, a minimal command line todo list program that I regularly use to manage my todos. It saves todos using GitHub markdown task lists format in a plain text file. The ...
MarcoLucidi's user avatar
6 votes
3 answers
553 views

Bash script to extract HTML comment into a Markdown file

I learned Bash a million years ago. I just wrote this simple script used to get the first lot of HTML comments from a file, and spit it out in order to create a ...
Merc's user avatar
  • 567
6 votes
2 answers
122 views

Command line utility to output modified Markdown

What this command line utility does is to take a text file and update the content a bit before turning it into Markdown. For example, the first for loop searches all the straight quotes and replace ...
wyc's user avatar
  • 565
6 votes
1 answer
273 views

Makefile for building classwork from markdown files and LaTeX

The following makefile builds my classwork for my various college classes and builds pdfs to hold the notes I took during class. I would like feedback on my directory structure and any optimizations ...
HSchmale's user avatar
  • 875
6 votes
1 answer
68 views

Print the list of winter bash 2014 hats as a list of checkboxes in GFM format

In Winter Bash 2014, since there is no easy way to see the hats I'm missing per site, I decided to use Gists for that. A perhaps not so well-known feature of GitHub Flavered Markdown (GFM) format ...
janos's user avatar
  • 111k
5 votes
1 answer
98 views

Script to loop through a list of YouTube channels, and output metadata to a Markdown file

Overview I have created a bash script (triggered via GitHub Actions) that does the following: Parse a list of YouTube channel IDs and nicknames. Fetch their metadata via YouTube's Channel API. Build ...
Jake Lee's user avatar
  • 153
5 votes
1 answer
278 views

Preprocessing Markdown Documents for Keywords

I recently added a feature to my application to serve arbitrary markdown documents from a directory. This is designed to allow authors to populate a folder full of help documents, and be able to view ...
xdumaine's user avatar
  • 151
4 votes
3 answers
1k views

Converting Pandoc Markdown images from captioned to inline

After writing a rather long document in Markdown and using pandoc to convert it to a PDF, I found, to my dismay, that many of the images were out of place, and that they all had their alternate text ...
Sam Estep's user avatar
  • 1,757
4 votes
1 answer
80 views

Tab 2 spaces convertor (for markdown)

This program converts glob files' tabs to spaces. There is a special case to ignore content inside triple back ticks. Example usage is ./tab_2_spaces.py *.md Main ...
JaDogg's user avatar
  • 4,531
4 votes
1 answer
861 views

Converting Markdown to HTML using Go

I recently ported a blog of mine from Python to Go (to improve speed and performance) and while all is great so far, I'd like some help optimising the Markdown ...
Malekai's user avatar
  • 167
4 votes
1 answer
334 views

Markdown parser, template engine, and then some

I've got my own website! Woo! It's got HTML and everything! But after struggling for a while with HTML and keeping my navbar consistent across pages, I gave up and wrote a program which: Searches for ...
user avatar
4 votes
1 answer
92 views

Markdown code formatter

With my rustymines 1 2 project, I realized, that it was cumbersome, to copy and paste all the code files into Markdown for review here. So I wrote a small program that formats source code files as ...
Richard Neumann's user avatar
4 votes
0 answers
231 views

Script to auto-generate Markdown tables of contents

I would greatly appreciate feedback on the enclosed script, which auto-generates a Markdown table of contents for Github-flavoured Markdown, with respect to: Consistency with Ruby idiom & style ...
Alex Harvey's user avatar
3 votes
2 answers
768 views

Source formatting of Markdown Table

I use MultiMarkdown tables more than I thought I ever would. In my .md files, I would like the source table code to be neat, evenly spaced, and resemble (in an ...
c ss's user avatar
  • 33
3 votes
1 answer
101 views

Easy to use code preparation script for CodeReview questions

We all face questions that forget to include their code. Sometimes all of it, sometimes only parts, that make the rest of the question unfortunately incomplete and therefore off-topic. What if it was ...
Zeta's user avatar
  • 19.2k
3 votes
0 answers
70 views

Simple Markdown Blog

this is my first real website I created after learning about web development. It's amazing to me that anyone would spare their free time to code review strangers' code. So thank you in advance. I'd ...
Paulemeister's user avatar
3 votes
0 answers
113 views

Vim plugin MarkDown Headings

This is my first Vim plugin and is intended to assist with adding, and editing, MarkDown headings. Features include changing the heading depth, auto-update heading reference links, and adding link ...
S0AndS0's user avatar
  • 976
3 votes
0 answers
258 views

Markdown to HTML Converter

I'm working on a markdown-to-html parser for my C++ proposals. Example usage is turning markdown like this into an html page like this. The part that caused me the most frustration was having (a) ...
Barry's user avatar
  • 18.4k
2 votes
1 answer
34 views

Formatter for converting links in a legacy markup to markdown

This program converts legacy markup in the form seen in the tests to the resulting markdown seen in the test's respective comment. The full program is as uploaded as a snippet, or you may see below <...
kluvin's user avatar
  • 385
2 votes
1 answer
129 views

Adding prefixes to headers in markdown

I'm adding prefixes to headers in markdown using a script. For example, if I have: # Hello ## World ### Let's add ## Some headers ### Yay! # Foo ## Bar I ...
Giel Berkers's user avatar
2 votes
2 answers
1k views

Converting file from Markdown-like markup into HTML using repeated substitutions

The following code reads a file, splits its data, replaces some characters in the data, and then joins the data again (I added more details in the comments): ...
wyc's user avatar
  • 565
2 votes
1 answer
410 views

Creating MarkDown documents in ruby

I'm trying to dynamically generate some MarkDown formatted documents, with header fields of arbitrary lengths. ...
danott's user avatar
  • 123
2 votes
1 answer
283 views

Importing markdown files

I'm building a rails app that, among other things, imports text markdown files as blog posts. The idea is that the truth is in the markdown files, so any time those are edited, created, or deleted, ...
Matt Martin's user avatar
2 votes
1 answer
347 views

Truncating article text

I need to show article's content based on this logic: if article's content has to be truncated (e.g for preview) if there's [read more] substring in the content ...
just so's user avatar
  • 237
2 votes
0 answers
847 views

Generating markdown documentation for VBA code

Generating documentation for VBA code The goal of this exercise to is create an application which can read module files created in VBA project and generate markdown documentation for them. Key ...
FlameHorizon's user avatar
2 votes
0 answers
149 views

KaTeX extension to Markdown

I've created a JS snippet to enhance markdown at display-time with KaTeX math rendering. (Specifically, this is mostly for documentation of math-heavy libraries where the host language documentation ...
CAD97's user avatar
  • 1,954
2 votes
0 answers
223 views

Markdown Previewer app done in ReactJS

What do you think of my markdown previewer, which uses the marked library? I'm asking because I'm new to React. And also what do you think of app itself? Did I use React correctly and properly? HTML: ...
Veljko Stefanovic's user avatar
2 votes
0 answers
62 views

Vim plugin for folding markdown lists

My first delve into vimscript was writing a plugin for folding markdown lists. I reckon there are a few idioms I'm missing here, so I would greatly appreciate any comments to improve the plugin. I'...
Hawkins's user avatar
  • 121
2 votes
0 answers
94 views

Rolling my own markdown parser in JavaScript

For several days I was messing around trying to create a markdown parser. This is the best I could come up without using regex. I was wondering if I'm on the right track.(I only covered the ...
Xtal's user avatar
  • 21
1 vote
1 answer
37 views

Transforming markdown files in folders into a documentation

I start coding a simple application: I transform markdown files in folders into documentation. My architecture is very flat. My code looks like a series of unit function called one after the other. <...
Guillaume Vincent's user avatar
1 vote
1 answer
106 views

Monthly attendance report for some company employees

I wrote this code for a company to visualize the attendance of its employees in July 2017. I have a folder "attendance" that containing 13 Excels file, a file for every employee. I'm pretty new to R, ...
norhan abdelaziz's user avatar
1 vote
0 answers
640 views

Putting a multichoicefield under a dropdown button

I am building a web app in Django where one of the form fields is a multiplechoicefield from a many2many object that I use to select users that are allowed to edit the post. In standard form the field ...
Bruno Vermeulen's user avatar
0 votes
1 answer
991 views

Yet Another Regex-Based MarkDown to HTML converter

I wrote a simple script to translate (a subset of) StackExchange markdown to HTML. I used Regex for this task, but luckily I only had to use simple patterns. ...
Caridorc's user avatar
  • 27.4k