├── README.txt ├── wmd-buttons.png ├── resources └── wmd-buttons.psd ├── node-pagedown.js ├── package.json ├── LICENSE.txt ├── local └── Markdown.local.fr.js ├── demo ├── node │ └── demo.js └── browser │ ├── demo.css │ └── demo.html ├── Markdown.Sanitizer.js ├── Markdown.Converter.js └── Markdown.Editor.js /README.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /wmd-buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ujifgc/pagedown/HEAD/wmd-buttons.png -------------------------------------------------------------------------------- /resources/wmd-buttons.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ujifgc/pagedown/HEAD/resources/wmd-buttons.psd -------------------------------------------------------------------------------- /node-pagedown.js: -------------------------------------------------------------------------------- 1 | exports.Converter = require("./Markdown.Converter").Converter; 2 | exports.getSanitizingConverter = require("./Markdown.Sanitizer").getSanitizingConverter; 3 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pagedown", 3 | "version": "1.1.0", 4 | "description": "markdown converter, based on showdown", 5 | "repository": { "type": "hg", "url": "https://code.google.com/p/pagedown/" }, 6 | "keywords": ["markdown"], 7 | "license": "MIT", 8 | "files": ["Markdown.Converter.js", "Markdown.Sanitizer.js", "node-pagedown.js"], 9 | "main": "node-pagedown.js", 10 | "bugs": "http://code.google.com/p/pagedown/issues/list", 11 | "homepage": "http://code.google.com/p/pagedown/wiki/PageDown" 12 | } 13 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | A javascript port of Markdown, as used on Stack Overflow 2 | and the rest of Stack Exchange network. 3 | 4 | Largely based on showdown.js by John Fraser (Attacklab). 5 | 6 | Original Markdown Copyright (c) 2004-2005 John Gruber 7 | 8 | 9 | 10 | Original Showdown code copyright (c) 2007 John Fraser 11 | 12 | Modifications and bugfixes (c) 2009 Dana Robinson 13 | Modifications and bugfixes (c) 2009-2014 Stack Exchange Inc. 14 | 15 | Permission is hereby granted, free of charge, to any person obtaining a copy 16 | of this software and associated documentation files (the "Software"), to deal 17 | in the Software without restriction, including without limitation the rights 18 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 19 | copies of the Software, and to permit persons to whom the Software is 20 | furnished to do so, subject to the following conditions: 21 | 22 | The above copyright notice and this permission notice shall be included in 23 | all copies or substantial portions of the Software. 24 | 25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 26 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 27 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 28 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 29 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 30 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 31 | THE SOFTWARE. 32 | 33 | -------------------------------------------------------------------------------- /local/Markdown.local.fr.js: -------------------------------------------------------------------------------- 1 | // Usage: 2 | // 3 | // var myConverter = new Markdown.Editor(myConverter, null, { strings: Markdown.local.fr }); 4 | 5 | (function () { 6 | Markdown.local = Markdown.local || {}; 7 | Markdown.local.fr = { 8 | bold: "Gras Ctrl+B", 9 | boldexample: "texte en gras", 10 | 11 | italic: "Italique Ctrl+I", 12 | italicexample: "texte en italique", 13 | 14 | link: "Hyperlien Ctrl+L", 15 | linkdescription: "description de l'hyperlien", 16 | linkdialog: "

Insérer un hyperlien

http://example.com/ \"titre optionnel\"

", 17 | 18 | quote: "Citation
Ctrl+Q", 19 | quoteexample: "Citation", 20 | 21 | code: "Extrait de code
 Ctrl+K",
22 |         codeexample: "votre extrait de code",
23 | 
24 |         image: "Image  Ctrl+G",
25 |         imagedescription: "description de l'image",
26 |         imagedialog: "

Insérer une image

http://example.com/images/diagram.jpg \"titre optionnel\"

Vous chercher un hébergement d'image grauit ?

", 27 | 28 | olist: "Liste numérotée
    Ctrl+O", 29 | ulist: "Liste à point