FAQ Database Discussion Community


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:...

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...

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)...

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...

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"...

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...

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...

code block inside table row in Markdown

markdown,github-flavored-markdown
I am putting together some documentation in Github flavoured Markdown and I want to put together a table that has two rows. One with simply text and one with a json code block. Heres an example. | Status | Response | |---|---| | 200 | | | 400 | |...

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....

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 ?...

suppress console output in r markdown, but keep plot

r,markdown,rstudio
Hi I have the following markdown chunk: ```{r, echo=FALSE,warning=FALSE,message=FALSE,error=FALSE} lapply(obj,function(x) plot(x,main="some plot") box() axis(1,at=seq(0,25,by=1)) ``` The output is multiple plots. However I also get the console message in the pdf document underneath the plots. <Plot 1> nice plot 1! <Plot 2> nice plot 2! -- nasty horrible console output ##...

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 --- ...

regex replace zero or more spaces at the end of a line with exactly two spaces

regex,notepad++,markdown
How do you replace a line ending with a non-whitespace followed by zero or more spaces, by the matched non-whitespace followed by exactly two spaces, leaving the newline character intact? Searching for this: (\S)(\h*)$ will match. Replace with this: \1 (?# two spaces after the one) will leave the newline...

add link to YAML in multimarkdown metadata

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...

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...

Pagedown Editor - make inline links instead of referenced links

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]:...

Rails needs page refresh to render correctly bootstrap markdown

ruby-on-rails,twitter-bootstrap,markdown
I am developing an app using Ruby on Rails. In a specific view I have a textarea that uses Bootstrap Markdown. The problem is that each time I visit that view, the textarea is rendered completely plain, without the Markdown functionality. Hitting F5 (refresh) renders the form correctly. I tried...

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)>`...

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...

Three-level nested list in kramdown

markdown,github-pages,kramdown
I have been trying to create a nested list like the following (with kramdown, for use on GitHub pages), but the HTML output is not semantic; paragraphs are used instead of list elements for the 2nd-level list, and code blocks are used for the 3rd-level list items. 1. Do something....

Writing from .txt to .md in python [duplicate]

python,markdown
This question already has an answer here: How do I copy a file in python? 10 answers How can I read a .txt file in python and write those contents into a .md file without any change in content. I have googled enough but couldn't find a proper answer...

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....

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...

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...

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()...

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...

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...

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...

How to bold a cell in a table (kable) in rmarkdown?

r,markdown,knitr,rmarkdown
Is there a way to format a single cell in a table in rmarkdown? I am using kable to generate a table, library(knitr) kable(data.frame(c('a','b','c'),c(1,2,3))) I wish to bold "c" in the last row and also add a horizontal line at the end of the table. Any pointers? Edit: Made a,b,c...

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?...

Markdown no break (nobr)?

html,markdown,line-breaks
I've got a phone number in my markdown that tends to break over the end of the line. In HTML I could wrap it in a <nobr> tag to have it keep together properly. What is the correct way to do this in markdown?

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...

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:...

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}...

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...

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...

how to add table of contents to doxygen generated html file?

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 *...

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;...

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...

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++...

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....

Preserve line breaks in title using pandoc

latex,markdown,pandoc
Consider the following title block in pandoc-flavored Markdown: % Higgelty Pigglety Pop! or There Must Be More to Life % Maurice Sendak Here, line breaks are part of the title. It is possible to reformat the title in order to insert it into regular text flow, e.g. "Higgelty Pigglety Pop!...

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

javascript,jquery,symfony2,twig,markdown
I want to use Markdown to preview to the user how a form field on a twig file will be styled using javascript. Basically what I'm trying to do, is : // This function is used to show the Description Preview $( "#server_new_profile_description" ).on('input propertychange', function() { // This should...

R: Repeating values in table

r,markdown
I am trying to merge two tables, but am getting repeated values. This is my code: ```{r,echo=FALSE} IdaEmpA <- data.frame(matrix(table(DadosA$idade, useNA = "always"))) colnames(IdaEmpA) <- "QA" IdaEmpA$percent <-...

Go: How to use the func() bool arguments in go?

go,markdown
This is a sample code from the Go blackfriday package: package main import ( "bytes" "fmt" "github.com/russross/blackfriday" ) func main() { input := []byte(`##Title - another paragragh This is a being rendered in a custom way. `) htmlFlags := 0 renderer := &renderer{Html: blackfriday.HtmlRenderer(htmlFlags, "", "").(*blackfriday.Html)} extensions := 0 unsanitized...

Markdown compiling images with paragraph tags

markdown,jekyll,liquid,github-pages
This is just a simple problem but it's one that I can't find on Google to solve this. Basically what is happening is that I have a Jekyll website, and I'm using kramdown for the markdown compiling. When I add an image to a markdown file like below: ![Image Alt...

Wrong number of arguments (1 for 0) error when calling markdown method

ruby-on-rails,ruby,markdown
All, I just created markdown_title and markdown_body methods. When I go to the show view page for my Post model I am getting the error: Wrong number of arguments. I believe my markdown_title method(also for markdown_body) might be constructed incorrectly below in the post.rb file. Is this the culprit?: class...

Jekyll redcarpet render Table with frame

markdown,jekyll,github-pages,redcarpet
I had the same problem as in Table not render when use Redcarpet in Jekyll GitHub Pages? And I used the answer to get table rendering into my github Jekyll page. But it does not render the frame or lines of the table. Is there the possibility to get a...

How do you escape pipe character in bitbucket markdown?

special-characters,markdown,bitbucket
I would like to add the following to a bitbucket wiki: Key | Description |Default | :-----------|:----------------------------------------------|:--------------| env |Execution context {development|test|production}|development | Markdown has a backslash escape for many characters, but not pipe (|). I saw one solution using {development&#124;test&#124;production} but this does not work as you can't use html...

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...

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....

Jekyll raw HTML in post

markdown,jekyll,github-pages,kramdown
I have a Jekyll website, with Posts written in Markdown using the Kramdown parser. I would like to add some raw HTML within the post. However when I try to add the HTML, it parses it as markdown (changing <'s to &lt; for example). I have tried: Adding the HTML...

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...

Jekyll kramdown how to display table border

table,border,markdown,jekyll,kramdown
I am using Jekyll default kramdown. I have a table showed using surround text, etc. | Tables | Are | Cool | | ------------- |:-------------:| -----:| | col 3 is | right-aligned | $1600 | | col 2 is | centered | $12 | | zebra stripes | are neat...

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....

Indent and wrap consecutive matching lines with string

regex,bash,awk,sed,markdown
I would like to convert a predictably-formatted file containing code snippets into Markdown. The file looks like this: MY CODE SNIPPETS 2015-05-01 This file contains useful code snippets for every day usage in the Linux command line. SED sed 's/\(.*\)1/\12/g' # Modify anystring1 to anystring2 sed '/^ *#/d; /^ *$/d'...

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,...

Markdown link escaping layout

html,twitter-bootstrap,markdown,jekyll,github-pages
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...

Markdown to HTML in AngularJS

javascript,html,json,angularjs,markdown
I'm using Contentful API to pull in some content. It arrives as a json object to my Node server, which passes it to my Angular frontend. Content in the json object contains unprocessed markdown text. For example the Angular call might look like this: var id = "asdf76f7g68sd7g"; $http.get("/api/article/" +...

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...

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...

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?...

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?...

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...

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?...

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,...

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: - {...

Access name of .rmd file and use in R

r,markdown,knitr
I am knitting a markdown file called MyFile.rmd. How can I access the string MyFile during the knitting and use it for: use in the title section of the YAML header? use in subsequent R chunk? --- title: "`r rmarkdown::metadata$title`" author: "My Name" date: "10. Mai 2015" output: beamer_presentation ---...

How to render multiple columns with Markdown in GitHub README?

css3,github,markdown
To render items in three columns, I attempted to add the following CSS3 directives to my project's README.md file, but the styling was stripped out: <div style="-webkit-column-count: 3; -moz-column-count: 3; column-count: 3; -webkit-column-rule: 1px dotted #e0e0e0; -moz-column-rule: 1px dotted #e0e0e0; column-rule: 1px dotted #e0e0e0;"> <div style="display: inline-block;"> <!-- first column's...

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...

Jekyll kramdown how to center text

markdown,jekyll,text-align,kramdown
I am using Jekyll (kramdown), and want to make some text align center. I found <span style=""> works for font color and size, but not work for text-align. How can I align some text. I have tried: <span style="color:gray; font-size: 80%; text-align: center;">Test Text</span> and -> Test Text <- None...

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...

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...

Parse markdown indented code block

ruby,parsing,markdown,parslet
I am trying to parse Markdown using a grammar written with Parslet. However, I cannot get past indented code blocks because everything I tried so far got stuck in recursion. They look like this: This is a indented code block. Second line. Code block continues after blank line. There can...

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...

Pandoc(md, latex) should generate bibitem in Bibliography

markdown,pandoc,pdflatex,bibtex,citations
With pandoc I am trying to produce a .tex file by combining a .md and a .bib file. In the resulting latex file, Pandoc already formatted as plain text the inline reference as well as the full reference in the bibliography. However, I like to have the references in \cite...

How to convert markdown to inline HTML?

javascript,html,markdown
With Markdown library I can do the following: > markdown.toHTML ("test `some code`") <- "<p>test <code>some code</code></p>" so it is easy to convert simple wiki text to HTML. However, resulting HTML is a block, where I'd (also) need inline HTML, for example to use as <input> label. So, I'd need...

Haskell Yesod: How to read text from file and apply variable interpolation to its content?

haskell,markdown,interpolation,yesod
I have quite big markdown text hardcoded inside my handler function currently. To render it I use whamlet quasiquoter and Text.Markdown.markdown from markdown package: let md :: L.Text md = "#Some markdown stuff" authLayout $ [whamlet| <div .StaticContent> #{markdown def md} |] There are some hardcoded links in the text...

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...

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....

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...

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...

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...

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...

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...

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:...

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 ##...

Create a partial using rendered html (from markdown) in Jekyll

markdown,jekyll
I am trying to create nested collections in Jekyll and render the nested ones as partials. I have two collection types: Areas (which contain many...) Trails Currently I am running into issues rendering all the trails on an "areas page". I want an area to list all trails, all of...

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...

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) } ``` ...

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...

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

eclipse,markdown,readme
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....

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....

How to read a markdown file in another markdown file?

markdown
My purpose is to collect many descriptions written in markdown to a single markdown file for an integrated article. For instance, in ./f1/a.md This is the description for f1 project. and in ./b.md The introduction of f1 project is shown below, <!-- Contain of the a.md goes here --> The...