Questions tagged [markdown]
Markdown is a markup language which can allow for plain-text documents to be transformed into HTML and other formats.
51 questions
6
votes
0
answers
184
views
Markdown parser library in C
For a side project, I needed a markdown parser and I decided to roll my own.
It is a SAX-style parser, i.o.w. you can hook into parser events on consumer side and do whatever you want with the content....
5
votes
1
answer
264
views
Parsing Markdown with bare hyperlinks: Hoping to find a way to workaround the "noscript" workaround
The following example shows how to use markdown-it to parse and render Markdown.
It works, but there is a dirty trick there, which I absolutely don't like: to ...
1
vote
0
answers
47
views
caching and rendering blog posts in markdown in react
I'd like to know if I'm doing this badly or involving any antipatterns. Masterlist.json contains a list full of all of the posts that exist and should be fetched on the page. Post metadata is ...
5
votes
1
answer
165
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
125
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
91
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 ...
2
votes
1
answer
55
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
<...
8
votes
2
answers
349
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 ...
3
votes
0
answers
159
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 ...
2
votes
0
answers
1k
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 ...
4
votes
1
answer
108
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 ...
2
votes
0
answers
184
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 ...
1
vote
0
answers
671
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 ...
2
votes
1
answer
167
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 ...
3
votes
1
answer
123
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 ...
12
votes
1
answer
6k
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'...
5
votes
1
answer
939
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 ...
2
votes
0
answers
246
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:
...
4
votes
0
answers
261
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
...
2
votes
0
answers
82
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'...
7
votes
1
answer
969
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 ...
10
votes
3
answers
760
views
Print code-fenced sections of a Markdown document
Original code and demo at this gist.
Given a Markdown document like
...
3
votes
0
answers
288
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) ...
1
vote
1
answer
153
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, ...
6
votes
1
answer
316
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 ...
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:
...
3
votes
2
answers
842
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 ...
4
votes
1
answer
357
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 ...
7
votes
3
answers
624
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 ...
2
votes
1
answer
364
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
...
11
votes
2
answers
332
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 ...
6
votes
1
answer
927
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 ...
7
votes
2
answers
392
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 ...
0
votes
1
answer
1k
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.
...
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 ...
10
votes
3
answers
764
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 ...
1
vote
1
answer
67
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.
<...
8
votes
0
answers
354
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
1
answer
221
views
2
votes
0
answers
111
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 ...
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):
...
6
votes
2
answers
146
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
82
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 ...
12
votes
2
answers
600
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 ...
9
votes
1
answer
351
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…
...
15
votes
2
answers
2k
views
Markdown to HTML
...
5
votes
1
answer
308
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 ...
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 ...
2
votes
1
answer
291
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
443
views
Creating MarkDown documents in ruby
I'm trying to dynamically generate some MarkDown formatted documents, with header fields of arbitrary lengths.
...