Questions tagged [markdown]
Markdown is a markup language which can allow for plain-text documents to be transformed into HTML and other formats.
48
questions
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:
...
15
votes
2
answers
2k
views
Markdown to HTML
...
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 ...
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'...
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 ...
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 ...
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 ...
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 ...
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…
...
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 ...
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
...
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 ...
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 ...
7
votes
1
answer
177
views
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
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 ...
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 ...
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) ...
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
<...
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 ...
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):
...
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.
...
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, ...
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
...
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 ...
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 ...
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:
...
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'...
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 ...
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.
<...
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, ...
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 ...
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.
...