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
4
votes
0 answers

How to use PageDown Markdown Editor in asp.net

I am creating a asp.net application. As a editor i want to use PageDown Markdown Editor in asp.net with c#. My application is not MVC. So can you please tell me how can i do this.
A.Goutam
  • 3,422
  • 9
  • 42
  • 90
4
votes
1 answer

Flask-PageDown and MathJax

I managed to implement PageDown in my Flask app via Flask-PageDown, following instructions here. That works fine, but mathematical expressions (MathJax) of the type: $$ .... $$ are not rendered in the previewer via such an extension. Note that my…
mannaia
  • 860
  • 2
  • 11
  • 27
4
votes
0 answers

PageDown with a Bootstrap 3 modal dialog, the background mask is causing many problems

Edit: Check the bottom of this post for a solution, but now it introduces a new problem. I'm using the most recent version of PageDown with Bootstrap 3. This series of events causes the following error: Uncaught TypeError: Cannot call method…
AntelopeSalad
  • 1,736
  • 1
  • 16
  • 27
4
votes
1 answer

How do I provide my own insert link dialog in pagedown editor?

I use pagedown for markdown editing and already used the insertImageDialog for overriding the default dialog for inserting images. Now I want to do the same for insert a link. I found the plainLinkText hook, but it does not seem to do, what I want,…
schub
  • 912
  • 1
  • 8
  • 26
4
votes
2 answers

Can Pagedown turn "\n" into
, just like MarkdownSharp's Autonewlines option?

I'm using markdown editor with Pagedown and MarkdownSharp. There is an option "AutoNewlines" in MarkdownSharp. I wonder how to do this in Pagedown (http://code.google.com/p/pagedown/). Thank you!
Chance
  • 1,317
  • 2
  • 12
  • 18
3
votes
1 answer

Does a PageDown plugin exist for Jeditable?

I am using the jQuery inline editing plugin Jeditable. Thankfully, Jeditable provides a plugin capability for extending the out of the box inline editing it provides. I am hoping to not reinvent the wheel-- as such does a PageDown plugin already…
ahsteele
  • 26,243
  • 28
  • 134
  • 248
3
votes
0 answers

How to exclude HTML DIV from a specific page in rmarkdown paged-HTML document?

I am using a paged HTML document template on Rmarkdown and I wanted to remove the header and footer ive created using custom CSS and HTML. I've tried using :not() but have not been able to specify the selector in CSS as I am not sure which selector…
3
votes
1 answer

Remove href and/or deactivate anchored links when printing a PDF from HTML using xml2 and pagedown with R

I'm using R to extract 100s of articles from a food blog and convert them to PDF. I'm 99% done, but when I print the final PDF, in-line hyperlinks have their URL written right within the text. I do not want every link rendered to text in the PDF,…
3
votes
1 answer

Can I use YAML data from a child .Rmd as first level heading for a pagedown document?

I would like to use child rmarkdown documents as "chapters" in my pagedown document and have the YAML options from that child document, such as title:, be used as a first level section heading. Ideally all section headings in the child .Rmd would…
bthorne
  • 371
  • 2
  • 5
3
votes
1 answer

Django Markdown Editor

I would really like a clear straightforward example for implementing a text editor in Django that is like the proposed pagedown or markdownx. I cannot get either of these solutions working in Django 2.0, and all the references I find including the…
jfkoehler
  • 269
  • 2
  • 17
3
votes
2 answers

How can I change the Google Pagedown Editor to use font awesome icons?

We are using the pagedown editor with an AngularJS directive. This is I believe the same one as used on stack overflow: angular.module("ui.pagedown", []) .directive("pagedownEditor", function ($compile, $timeout, $window, $q) { var nextId = 0; …
Alan2
  • 23,493
  • 79
  • 256
  • 450
3
votes
1 answer

Why isn't the PageDown Editor triggering Knockout value update when using the button bar?

I am having a problem getting the knockout model to update when a user uses the PageDown button bar to make changes to the editor text. Any typing, pasting, or cutting works fine but the button bar actions do not. I have tried adding a hook for…
Brant Olsen
  • 5,628
  • 5
  • 36
  • 53
3
votes
0 answers

Using pagedown/markdown in Django together with Bootstrap

I use Django 1.6.4 and I want to create a site for a scholarship (kleyboldt) where you can see the latest news. It is my aim to create a user friendly admin page where also people without any knowledge in html or css are able to format their text.…
Nick Lehmann
  • 598
  • 1
  • 7
  • 25
3
votes
3 answers

How to add custom image tag to pagedown?

I'm attempting to duplicate the original img tag's functionality in custom img tag that will be added to the pagedown converter. e.g I'm copy the original behavior: ![image_url][1] [1]: http://lolink.com gives into a…
bnynn
  • 501
  • 1
  • 6
  • 20
3
votes
1 answer

knockout valueUpdate not working with Pagedown?

I have the following in my view: Which when typing, behaves as I'd expect. But I'm using a WMD / Pagedown editor to click a button that adds content to the field, much…
SB2055
  • 12,272
  • 32
  • 97
  • 202
1
2
3
10 11