Questions tagged [pagedown]

PageDown is the JavaScript Markdown previewer used on Stack Overflow and the rest of the Stack Exchange network. It includes a Markdown-to-HTML converter and an in-page Markdown editor with live preview.

PageDown is the version of Attacklab's Showdown and WMD as used on Stack Overflow and the other Stack Exchange sites.

It includes a converter that turns Markdown into HTML, a Markdown editor with realtime preview of the generated HTML, and a few useful plugins, e.g. for sanitizing the generated HTML according to a whitelist of allowed tags.

The Markdown converter can be used both in the browser (usually in conjunction with the editor, to display a real time preview), and on the server using Node.JS.

156 questions
38
votes
2 answers

How to use PageDown Markdown editor?

I would like to provide the user the ability to live-preview notes that are created with Markdown. However I cannot find any downloads in that project. How can I get started with the PageDown Markdown editor?
user517491
24
votes
4 answers

Google pagedown AngularJS directive

See bottom of question for an improved solution to this problem I have been trying for some time now to get a directive for the pagedown working. This is the exact same editor used by stackoverflow. Stackoverflow make this code available…
Samantha J T Star
  • 30,952
  • 84
  • 245
  • 427
21
votes
4 answers

let PageDown and MathJax work together

I am implementing a UI which is supposed to look pretty much like the one on math.stackexchange.com: Using fancy Markdown like you are used to on stackoverflow Parsing formulars using MathJax between $...$-signs. So I downloaded the PageDown demo…
Milla Well
  • 3,193
  • 3
  • 35
  • 50
11
votes
1 answer

What is the purpose of MarkDownSharp when used with PageDown?

The StackExchange sites uses MarkDown syntax for writing questions and answers. This is built using PageDown on the client side and MarkDownSharp and Jeff's HTML sanitizer on the server side. I'm thinking of building something very similar myself. I…
Henrik Ripa
  • 595
  • 8
  • 24
9
votes
1 answer

How to implement image upload to the PageDown markdown editor?

To implement image upload to the PageDown markdown editor, I have modified some code about the editor. Markdown.Editor.js var defaultsStrings = { imagedialog : "< input id='image' type='file' />" } When select a picture and then click ok button…
Olivia Wang
  • 613
  • 6
  • 23
8
votes
1 answer

How to delete blank pages in Rmarkdown(pagedown)

This is my code: --- title: "A Multi-page HTML Document" author: "Yihui Xie and Romain Lesur" date: "`r Sys.Date()`" output: pagedown::html_paged: toc: true toc_depth: 3 # change to true for a self-contained document, but it'll be a…
Laura
  • 675
  • 10
  • 32
6
votes
2 answers

Markup for an Email Signature or Postal Address in Markdown

Using pagedown/standard markdown, is there a way to mark up a postal address or email signature block so that it doesn't fold into a single line? e.g. First Lastname Some Company 2041 Smile Rd New York, NY (999) 999-8888 If I leave it as - is like…
GWR
  • 1,878
  • 4
  • 26
  • 44
6
votes
1 answer

Using Pagedown I get "Uncaught TypeError: Cannot read property 'attachEvent' of null"

When ever I load a page with a very simple example I get Uncaught TypeError: Cannot read property 'attachEvent' of null. Markdown.Editor.js:273 in my Chrome console log. In Firebug I get elem is null [Break On This Error] if (elem.attachEvent)…
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
5
votes
2 answers

pagedown html resume with aside on first page only

I'm attempting to make a CV using R Markdown and the {pagedown} package. Is it possible to only include the grey aside bar on the first page? I've tried playing with the page identifiers as described here. @page :first { .aside{ width:…
Jake Thompson
  • 2,591
  • 1
  • 16
  • 32
5
votes
1 answer

PageDown through ScriptEngine incorrectly parsing Markdown

I am trying to use PageDown on the client side as an editor, and on the server side to then parse that Markdown to HTML. It seems to work fine on the client side, but on the server side, tickmarks are only "codifying" the character that follows, not…
Kevin Workman
  • 41,537
  • 9
  • 68
  • 107
5
votes
1 answer

Pagedown Editor insertimagedialog hook

I've created my own insertImageDialog hook to allow uploading of files directly within the editor. $('div#insertImageDialog input[type=file]').ajaxfileupload({ action: $file.attr('data-action'), onStart:…
Ben Foster
  • 34,340
  • 40
  • 176
  • 285
4
votes
2 answers

Is there a way to suppress glue output in R, if the variable is empty?

I am creating a resume using pagedown. It takes a data.frame of CV inputs and generates a pagedown HTML output via glue package. However, if the variable is empty (as in the example below), glue generates a blank line. How can I prevent this…
4
votes
0 answers

pagedown::chrome_print() extremely slow for some xaringan html slides

I'm creating pdf versions of html slides generated from R markdown files. I've come across a puzzling behaviour. When I run pagedown::chrome_print on the html with output specified as xaringan::moon_reader, the operation fails with the timeout…
kkorthauer
  • 41
  • 1
  • 3
4
votes
1 answer

Using Rmarkdown (pagedown) and changing Table of Contents

Hello guys I've trying to solve this but I have no way to go: This is my code: --- title: "A Multi-page HTML Document" author: "Yihui Xie and Romain Lesur" date: "`r Sys.Date()`" output: pagedown::html_paged: toc: true toc_depth: 3 #…
Laura
  • 675
  • 10
  • 32
4
votes
1 answer

Matching PegDown+JSoup Output to PageDown Output

I am trying to parse and sanitize markdown on the client and server side. On the client side, I use PageDown as a markdown editor. This is exactly what StackOverflow uses, and it comes with a nifty preview box. This preview box shows you sanitized…
Kevin Workman
  • 41,537
  • 9
  • 68
  • 107
1
2 3
10 11