FAQ Database Discussion Community

## Markdown syntax highlighting not working as expected

javascript,markdown,syntax-highlighting,sublimetext,sublimetext3
In Sublime Text 3 I am using the package Markdown Extended and Markdown Preview to build the Markdown documents I write. I am trying to get nicely formatted JavaScript code, however, for some reason it isn't being built and displayed correctly. In Sublime, the code is highlighted and looks great,...

## Multimarkdown to custom HTML Template

html,xslt,markdown,multimarkdown
How do I use MultiMarkdown 4 to take my markdown document and create a full custom HTML document. As just using multimarkdown file.md > file.html would create the body of the HTML document I could just copy and paste this result into my HTML template, but if I want further...

## Meteor.js way to show markdown from another link

meteor,markdown
I have a README.md file in github repository. I want to show contents of README.md file in my website as well. But I don't want to copy contents of README.md file and place it inside markdown file as below. {{#markdown}} //copy of README.md file {{/markdown}} Is there way to do...

## GitHub Markdown - Add current branch name

github,branch,markdown,placeholder
Just a short question: Is it possible to show the current branch name in e.g. README.md automatically with a placeholder or something like that using GitHub Flavored Markdown?...

## Add sections to beamer presentation using rmarkdown and knitr

r,latex,markdown,knitr,rmarkdown
I am trying to add section slides to a beamer presentation written in rmarkdown using the latex command \section{}. However, it gets inserted between a \begin{frame} & \end{frame} automatically during the conversion, which causes the compilation to fail. Is there any way to stop this happening so that the section...

## Is there any advantage to using BytesIO with markdown instead of open / read in Python?

python,markdown,stringio
Considering the following code: from markdown import markdown f = open('myfile.md', 'r') html_text = markdown(f.read()) f.close() Is there any speed advantage or disadvantage to using io.BytesIO and markdownFromFile? Or is it a wash? from markdown import markdownFromFile from io import BytesIO s = BytesIO() markdownFromFile(input='myfile.md', output=s) html_text = s.getvalue() s.close()...

## Inserting html code to a div from javascript, using a twig function

javascript,jquery,symfony2,twig,markdown

## Common Markdown Code Syntax for Kramdown

markdown,jekyll,kramdown
Is there any way to modify Kramdown through configuration options which will allow me to use Common Markdown/GFM fenced code block syntax, i.e.  here's the code!  I'm switching to Kramdown for my blog so I can have Markdown inside other elements, but most of my blog uses GFM...

## Jekyll: Using liquid tags in .md files

html,markdown,jekyll,liquid
I am working on a project using Jekyll. Looking online, it seems that it is possible to use liquid tags in a markdown file. For some reason, the liquid tags are not working in my markdown files. I want to use the liquid "capture" tag to store text in a...

## Convert markdown links from inline to reference

regex,markdown,sublimetext3,sublimetext
I have a changelog file formatted using Github's markdown. Initially I used inline links for every link I needed to add, that is: This is some [example](http://www.stackoverflow.com) line of text. Over time, as the file grew in size, it became a bit messy due mainly to this way of inserting...

## Render font size of maths in Rmarkdown slides when viewed in then Rstudio viewer

r,markdown,rstudio,rmarkdown,mathjax
Writing some slides for lecture. I want to include a shiny app. I do not have admin rights on the lecture room computer, which means I can run my Rmd file and present the slides via the Rstudio viewer, but they will not display in a web browser. All the...

## How do you specify request body attributes in Apiary.io / API Blueprint?

markdown,apiblueprint,apiary.io
I'm trying to figure out how to describe/define the request body attributes/parameters for POST/PUT. Here is an example of what I'm trying to do, but I can't find it anywhere in the documentation (I wish there was a way to view the markdown of any public Apiary doc): http://docs.bynder.apiary.io/#reference/metaproperties/metaproperty-access/save-new-metaproperty See...

## rmarkdown: page break within a chunk?

r,markdown,knitr
Is it possible to make each of the numbers show up on a separate page? --- title: "Page Break In Chunk" output: pdf_document --- {r} for(i in c(1:10)) { print(i) }  ...

## how to insert image from url in markdown

r,graphics,markdown
The way to insert an image to markdown file is (and it is outside "{r}") <center><src="http://ia.media-imdb.com/images/M/MV5BMTg4NzEyNzQ5OF5BMl5BanBnXkFtZTYwNTY3NDg4._V1._CR24,0,293,443_SX214_AL_.jpg"></center> But I want to make url as a variable. So I tried something like this: {r, result='asis'} url <- "http://www.online-image-editor.com//styles/2014/images/example_image.png" print(paste("<center><src=\"", url, "\"></center>", collapse=""))  But it doesn't work. The result I get ##...

## Jekyll: Dealing with Images in Markdown

image,markdown,jekyll,image-gallery
I've got a design for my post page that is made up of text and images, more specifically, galleries. Take a look at the illustration below: I've got these galleries set up my front matter like so: --- gallery-1: rows: - images: - { url: '1.jpg'} - images: - {...

## Parse Markdown into HTML in JavaScript X-Editable field

javascript,jquery,markdown,x-editable
I am using the jQuery X-Editable edit-in-place library on a field and the JavaScript Marked Markdown Parser library to try and convert Markdown strings into HTML. The goal is to show HTL and when it turns into a textarea edit field, to then how the Markdown. The Markdown will be...

## Aglio does not allow parameters in the body to be defined as parameters

rest,markdown,apiblueprint,aglio
Aglio, an API Blueprint renderer, does not allow parameters in the body of a request to be included in the parameters section of the the Endpoint specification. It throws parse warning as follows: parameter '<some_parameter>' not specified in '<some_description>' its '<some_URI_template>' URI template (warning code 8) A sample Markdown which...

## Extracting URL and anchor text from Markdown using Python

python,regex,markdown
I am attempting to extract anchor text and associated URLs from Markdown. I've seen this question. Unfortunately, the answer doesn't seem to fully answer what I want. In Markdown, there are two ways to insert a link: Example 1: [anchor text](http://my.url) Example 2: [anchor text][2] [1]: http://my.url My script looks...

## Indent and wrap consecutive matching lines with string

regex,bash,awk,sed,markdown

## Replace number with text using regex

regex,markdown
I need to go through a file and replace all instances where an issue is mentioned using the Github convention #xxx (where xxx is the issue number), with a link to the issue using the Markdown format. So for example, this: #143, #99 should be converted into this: [#143](https://github.com/repo/issues/143), [#99](https://github.com/repo/issues/99)...

## How do I convert markdown equations to pdf using pandoc

pdf,latex,markdown,pandoc
I have a markdown document with lots of equations (mathjax I think) which renders fine with the application Marked 2. When I try to convert it to pdf with pandoc to create the bibliography, I get an error. For example, with \\[ \mu_{s,h,d,y} = \left\{ \begin{array}{1 1} \omega_{s,h,d,y} + \delta_{s}(t_{s,h,d-1,y}...

## Two columns code in Markdown

markdown
I would like to write a document that explain coding standard with good and bad coding examples. Each rule has a number a description and an example. For example here is the rule 1: # Rule 1 Description for rule 1. ## Good c int foo (void) { int i;...

## Can I use a regular expression to convert these examples to markdown?

regex,markdown
I have been working on a google docs to markdown converter to convert post written in google docs to something that can be easily used within jekyll. Unfortunately, google docs has some foibles that make conversion non-trivial. For example, kramdown emphasis requires that text being emphasized be "surrounded" by emphasis...

## Redcarpet Markdown Conversion Method, NoMethodError

ruby-on-rails,ruby,ruby-on-rails-3,markdown,redcarpet
Working on an assignment here. Was just introduced to Redcarpet and the Markdown conversion Method. This was placed inside my Helper: def markdown_to_html(markdown) renderer = Redcarpet::Render::HTML.new extensions = { fenced_code_blocks: true } redcarpet = Redcarpet::Markdown.new(renderer, extensions) (redcarpet.render markdown).html_safe end And I could call the method in my views like so:...

## LaTeX Equations Not Rendered on Webpage

r,latex,markdown,knitr
When I go to a webpage, such as this page of examples, none of the LaTeX code is being rendered in any of the browsers I try. However, on the same computer, if I create a simple R Markdown file in RStudio and I click Knit HTML, the preview in...

## Markdown to HTML in AngularJS

javascript,html,json,angularjs,markdown

## How can I edit the markdown font colors in Eclipse Luna?

For dark color schemes in eclipse, the default markdown colors are hard to read. This makes it difficult to edit README.md files, for example. It took me a while to find the right setting to change font color and thought I would share the answer....

## how to reference code in Markdown?

html,css,html5,markdown,jekyll
I write markdown file mainly for my jekyll blog, so liquid method is okay When inserting raw HTML code in to markdown. The whole markdown code page seems ugly and confused. And it will be difficult to modify days later. So can I just make some of code be reference-style....

## Dart Pub greater than and less then mardown issue

dart,markdown,publish
Having an issue with the display of "<" and ">" using markdown's back-tick code syntax in Dart pub? Not sure how to achieve: Future<bool>. If I write that as I have done here, it comes out as: Future&lt;bool&gt;, as found here: https://pub.dartlang.org/packages/functional_behaviour_tree Have also noticed that where packages were fine...

## authomatic dates in R markdown beamer [duplicate]

r,markdown,beamer
This question already has an answer here: YAML current date in rmarkdown 3 answers I am using R Markdown to produce a Beamer presentation. How can I put the date that authomatically updates his values? The current setting are below: title: "MyTitle" author: "MyName" date: "19th April 2015" output:...

## Is there any markdown tools that support task lists

markdown,github-flavored-markdown
I have googled for a long time but can not find any tools that support task lists in GFM. I tested this line in the tools: - [x] This is a complete item StackEdit, misaka, marked and so on, NONE of them worked while most of them claim support GFM....

## R Markdown could not find function [closed]

r,markdown
Running Compile Notebook from RStudio. I am getting: Error: could not find function "SegNeigh" "SegNeigh" being my own function, properly sourced; the script runs fine without R Markdown. Any help appreciated....

## Formatting GitHub commit messages from shell

github,markdown
I just read Writing good commit messages and liked it a lot. The problem is, I prefer the command line (plain ole' git). How can I add newlines and tabs to commit messages, so as to have a "summary line" and message body (which may consist of several paragraphs)? Does...

I have a website I am making with Bootstrap and Jekyll. I recently ran into a problem where, on blog posts, if an author's name is hyperlinked (to a Google+ profile, for example), a snippet of html is displayed above the body as if the HTML syntax is broken. I'm...

## Batch modify text files

regex,markdown,batch-processing
I have a million markdown files spread across several sub-directories files with different titles where I want to change: # A Markdown title to --- title: "A Markdown title" --- …while keeping the rest of the file intact. Any ideas? OS X solutions prefered....

## Pandoc disable figure stretching from Markdown to PDF conversion

pdf,markdown,pandoc
I create PDF documents from Markdown documents using the simplest pandoc command: pandoc my.md -o my.pdf The figures inside the PDF are all stretched, i.e: 100% width. Which configuration should I give to pandoc to leave the figures as is without changing figure size....

## Grouping MarkDown elements in to DIV element or Custom html tag

html,markdown,jekyll
I have used Jeykll tool to generate mark down content into HTMl . I want to group the below mark down elements in to div element or any other custom Html tag. Marked Down #Multiple Axis {:.title} Different types of data can be visualized in a single chart with the...

## Can I set command line arguments using the YAML metadata

yaml,markdown,pandoc
Pandoc supports a YAML metadata block in markdown documents. This can set the title and author, etc. It can also manipulate the appearance of the PDF output by changing the font size, margin width and the frame sizes given to figures that are included. Lots of details are given here....

## Jekyll won't parse Markdown

markdown,jekyll
I'm running Jekyll on Windows 8.1 and can't get Jekyll to parse any Markdown on my site; it just gets pasted as plaintext on the page. However, making a new site with jekyll new blog and running it with jekyll serve works just fine, including Markdown parsing, so it's not...

## use markdown module in Angular.js , it doesn't turn to the html element

angularjs,markdown
i use the markdown module in node.js , when i get some text from mongodb , i turn it to markdown : newsList.forEach(function (news) { news.publishContent = markdown.toHTML(news.publishContent); }) and send the data to the html via angular : <p ng-bind="nl.publishContent" ng-show="!isEdit"></p> but the result in the html page is...

## How to convert RTF to Markdown on the UNIX/OSX command line similar to pandoc

osx,unix,converter,markdown,rtf
How do I convert RTF (say from stdin) to Markdown with a command line tool under UNIX/OSX. I am looking for something like pandoc. However pandoc itself does not allow RTF as an input format. :-( So, I'd be happy either with a similar tool to pandoc or a pointer...

## How can I install packages in knitr?

r,markdown,knitr
Till now, I was using this chunk of code to load R packages and write .R files. But I am trying to use knitr rm (list=ls(all=TRUE)) kpacks <- c('ggplot2','install_github','devtools','mapdata') new.packs <- kpacks[!(kpacks %in% installed.packages()[,"Package"])] if(length(new.packs)) install.packages(new.packs) lapply(kpacks, require, character.only=T) remove(kpacks, new.packs) options(max.print=5.5E5) But now, when I put this chunk of...

## Jekyll: including a post inside another post

include,markdown,jekyll,yaml-front-matter
Does Jekyll provide a way to include a post inside another post? I know that sounds a bit goofy, but I'm using it for a cooking/recipe site. Some of my recipes are made up of components, or other, smaller recipes. I'm looking for a way to include a handful of...

## Reference an image in BitBucket readme.md

image,git,markdown,bitbucket
I have stored readme.md file and an image file in a BitBucket repo as follows: readme.md images/ scheme.jpg I reference the image from readme.md as follows: ![Scheme](images/scheme.jpg) Can I somehow reference the image from readme file so that it renders when viewed in BitBucket? In tutorial there is only http...

## Android show MDWiki in WebView

android,android-webview,markdown
I need to open an MDWiki with a WebView. So i load the index.html from the android_asset. First error was that he didn't find config.json file. I created this myself. Then i had an error for favicon.png. I use a normal picture for this now. But he still don't load...

## Bulleted List with bullet flush left and Hanging Indent

html,markdown,indentation
I'm looking for the proper way to code a bulleted list, in html or markdown, with the bullet flush left, a tab space after the bullet and a hanging indent directly under the bulleted line. I've tried hacking it together with spaces, and various lists but nothing looks good. Any...

## How to create a paypal form display in github README

github,markdown
What I am trying to do is, Display the paypal donation form into github project README.md file Using the html markdown display it as html rather than rendering the button with form. HTML // here goes the html of the paypal form any thoughts ?...

## Pandoc 1.13.2 outputs html table as text

markdown,pandoc
Take this tst.md file (in Markdown) % Test document <table> <thead> <tr > <th>A</td> <th>B</td> </tr> </thead> <tbody> <tr > <td>1</td> <td>2</td> </tr> <tr > <td>3</td> <td>4</td> </tr> </tbody> </table> End of test file and run it with pandoc 1.13.2 to transform it into html pandoc -s "test.md" -o test.html...

## PanDoc: How to assign level-one Atx-style header (markdown) to the contents of html title tag

html,markdown,pandoc
I am using PanDoc to convert a large number of markdown (.md) files to html. I'm using the following Windows command-line: for %%i in (*.md) do pandoc -f markdown -s %%~ni.md > html/%%~ni.html On a test run, the html looks OK, except for the title tag - it's empty. Here...

## Is it possible to have custom numbers in ordered lists in markdown?

markdown,pandoc
Say, I need a list (for indentation purposes) of the following format: (1a) Bla (1b) Bla (2a) Bla (2b) Bla Is there a way to do this in markdown?...

## Split the title onto multiple lines?

r,yaml,markdown,rstudio
In an R markdown document (html and presentations), is it possible to manually split the title onto multiple lines? I tried playing with pipes which produces orrendous output. --- title: 'A title I want to split on two lines' author: date: output: ioslides_presentation --- ...

## How to make this function apply on each matched element in the following JsonML?

javascript,json,markdown
I have the following JsonML generated via markdown-js: [ 'markdown', [ 'para', 'This is a paragraph.' ], [ 'para', 'Another paragraph' ] ] What I'm trying to do is to add the class noind to each paragraph tag. Full code: var text = "This is a paragraph.\n\n" + "Another paragraph"...

## adding local references in markdown

documentation,markdown
how to add local references in markdown language? for example i need the following code in rst to be converted in to the markdown. Admin Operations ---------------- .. note:: You need to create an admin session in order to perform admin operations. - :java:ref:Create Account <com.xxx.yyy.client.Admin.createAccount(String, String, String, String, String)>...

## How does pandoc-citeproc sort citations?

markdown,pandoc,csl
I have a pandoc-style Markdown text where I cite two papers by the same author in the same place: Lorem ipsum [@Author2000;@Author2001] dolor sit amet. This is rendered as Lorem ipsum (Author 2001, 2000) dolor sit amet. Why are these citations sorted this way, contradicting the sequence in my text,...

## How would I implement a StackOverflow-like Markdown in PHP?

php,markdown
What am I looking for? I am looking for a markdown language that works similiar to the one used here on stackoverflow. Possible solutions I could go and write my own Markup language but I think this will be a waste of time. This is a possibility though. What I...

## Is there Task Completion info on GitHub Issues API?

github,markdown,github-api,github-flavored-markdown
On GitHub Flavored Markdown you can write something like: - [ ] Subtask 1 - [ ] Subtask 2 - [x] Subtask 3 This will render as a list of three checkboxes, the last one checked. That also gives a nice bonus to Issues listing as it includes a progress...

javascript,markdown,pagedown
Does anyone know how to use hooks or edit Markdown.Editor.js from Pagedown to have it create inline links and instead of referenced ones? As in, I want this to happen when I click the link button: [inline link](http://www.google.com) ![alt text](http://website.com/bear.jpg "title text") instead of this: [referenced link][1] ![referenced image][2] [1]:...

markdown,doxygen,toc
I have a C-project documented with doxygen and want to add a table of contents that shows the sections and subsections. I tried the \tableofcontents and the [TOC] as described in the doxygen manual, but nothing happens. Here is a small example: /***********************************//** * \file Bsp.c * \brief example *...

## Slim template: use Pandoc as markdown converter?

ruby-on-rails,markdown,pandoc,slim-lang
I use slim as template syntax in a Rails project. I always loved its markdown: feature. For the current project I have to export some markdown content to different formats, e.g. PDF. I use Pandoc for this, which has enhanced capabilities for markdown. Now I wonder whether I can tell...

## R Markdown - variable output name

r,markdown
With one R markdown file, I would like to create different possible output pdf documents, where the output file name should be defined within the document. Is there any way to convince markdown to manipulate the output filename in such a way? Ideally I would like to pass the filename...

yaml,markdown,multimarkdown
I'm writing my CV in MMD. I'd like to add a link to my website, twitter account etc in the mmd metadata and then reference that in the pdf, html, latex that is generated from the mmd. Here's an example mmd file. --- Name: Mark Ruddy Website: [myWebsite](http://myWebsite) Street: my...

## Markdown reverse ordered list?

markdown,rmarkdown
Is there a way to display a reverse-ordered list in plain Markdown? I read about the HTML "reverse" option (How to display a reverse-ordered list in HTML?, http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_ol_reversed) but would favor a Markdown solution if that exists. To clarify, is there a way to write something like: 0. Coffee 0....

## Sublime Text - spell check but only certain file extensions

markdown,sublimetext,spell-checking
There's no point of enabling spell check for your html/js/css/c/php/py/etc files, but it can be very useful when you are writing in Markdown. How to enable spell check only for only certain file extensions?...

## Pandoc - HTML to Markdown not processing nested unordered lists correctly

html,nested,html-lists,markdown,pandoc
I am trying to convert a nested unordered HTML list to Markdown using Pandoc. The nested list in the HTML document is in the format: <ul> <li>outer list item</li> <li>outer list item</li> <li>outer list item</li> <ul> <li>inner list item</li> <li>inner list item</li> <li>inner list item</li> </ul> <li>outer list item</li> <li>outer...

## Nested bullets in markdown for Github

github,markdown
I have the following text inside a Markdown file: - In order to free : - Items no rateados por exp: javascript db.items.find({"detail.rc": {$lt: 20}, "dst": "v"}).count() db.items.find({"detail.rc": {$lt: 20}, "dst": "b"}).count()  - Items no rateados por exp y sin rat: `javascript db.items.find({"detail.rc": {$lt: 20}, "dst": "v"}).count() db.items.find({"detail.rc": {$lt:...

## Continue Enumeration after Code Block?

markdown
I have a Markdown enumeration: sdsdf sdfsdf some code 3. sdfsdf The 3. is shown as one because of the code block. How can I insert a code block in one of the enumeration steps and let the enumeration counter continue correctly after the counter?...

## Replace many arbitrary markdown links with grep/sed

regex,bash,sed,grep,markdown
I have a large set of markdown files that I need to go through and replace many of the links. Each link that needs replacing is preceded by the same string, say Foo bar, and then the customary markdown link syntax follows: [arbitrary name](address). For example, Foo bar [arbitrary link...

## How to fix? Wordpress wp-markdown plugin corrupted syntax-highlighter-evolved plugin posts?

wordpress,wordpress-plugin,markdown,syntaxhighlighter
Help! I have been documenting some C++ codes (or can be any codes) over the past few months on wordpress, with the Syntax-highlighter-evolved plugin. Everything had worked fine. e.g. the C++ codes displayed correctly in post. e.g. the following syntax would display C++ codes nicely in wordpress. [code language="cpp"] c++...