-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes unautop and autop methods: use embed shortcodes for oembed. R…
…emove tinymce editor if using MD. Adds public wrapper functions git-svn-id: http://plugins.svn.wordpress.org/wp-markdown/trunk@633701 b8457f37-d9ea-0310-8a92-e5e31aec5664
- Loading branch information
stephenh1988
committed
Dec 3, 2012
0 parents
commit d90aeed
Showing
21 changed files
with
10,882 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,81 @@ | |||
.wmd-panel{min-width: 500px;width: 100%;} | |||
.wmd-button-bar {width: 100%;} | |||
|
|||
.wmd-preview { | |||
border: 2px dotted #CCCCCC; | |||
clear: both; | |||
color: #555555; | |||
font-size: 14px !important; | |||
line-height: 1.4em !important; | |||
margin-bottom: 5px; | |||
margin-right: 5px; | |||
padding: 3px; | |||
width: 100%; | |||
} | |||
.wmd-preview pre{background:none;border:none;} | |||
.wmd-preview pre code{display:block!important;} | |||
.wmd-preview code{display:inline;background-color: #F0FFF8;border: 1px solid #CEEFE1;font-size: 13px;padding: 1px 3px;margin:0px;} | |||
.wmd-help-spaces{background: white;} | |||
|
|||
.wmd-button-row {position: relative; | |||
margin-left: 5px; | |||
margin-right: 5px; | |||
margin-bottom: 0px; | |||
margin-top: 10px; | |||
padding: 0px; | |||
height: 20px; | |||
} | |||
|
|||
.wmd-spacer{ | |||
width: 1px; | |||
height: 20px; | |||
margin-left: 14px; | |||
position: absolute; | |||
background-color: Silver; | |||
display: inline-block; | |||
list-style: none; | |||
} | |||
|
|||
.wmd-button { | |||
width: 20px; | |||
height: 20px; | |||
padding-left: 2px; | |||
padding-right: 3px; | |||
position: absolute; | |||
display: inline-block; | |||
list-style: none; | |||
cursor: pointer; | |||
} | |||
|
|||
.wmd-button > span { | |||
background-image: url(wmd-buttons.png); | |||
background-repeat: no-repeat; | |||
background-position: 0px 0px; | |||
width: 20px; | |||
height: 20px; | |||
display: inline-block; | |||
} | |||
|
|||
.wmd-spacer1{left: 50px;}.wmd-spacer2{left: 175px;}.wmd-spacer3{left: 300px;} | |||
|
|||
.wmd-prompt-background{background-color: Black;} | |||
.wmd-prompt-dialog{border: 1px solid #999999;background-color: #FDFDF5;} | |||
.wmd-prompt-dialog > div {font-size: 0.8em;font-family: arial, helvetica, sans-serif;text-align: center;} | |||
.wmd-prompt-dialog > form > input[type="text"] {border: 1px solid #999999;color: black;} | |||
.wmd-prompt-dialog > form > input[type="button"]{font-family: trebuchet MS, helvetica, sans-serif;font-size: 0.8em;font-weight: bold;} | |||
|
|||
/*Prettify*/ | |||
.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}} | |||
ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} | |||
|
|||
/*Markdow Admin*/ | |||
#ed_toolbar .wmd-button-row{margin:5px 0px} | |||
#postdivrich .wmd-preview {margin-right:-10px;padding:10px;width:97.1%} | |||
#postdivrich blockquote{ | |||
font-family: Georgia,"Bitstream Charter",serif; | |||
font-style: italic; | |||
font-weight: normal; | |||
margin: 0 3em; | |||
} | |||
#postdivrich .wmd-preview ul{list-style: square;margin-left: 2em;} | |||
.wp-admin .wmd-prompt-dialog > div {font-size: 1em;} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,29 @@ | |||
jQuery(document).ready(function($) { | |||
$('#wmd-button-bar-help').hide(); | |||
$('pre').not('.wmd-help').addClass('prettyprint'); | |||
|
|||
var converter2 = new Markdown.getSanitizingConverter(); | |||
|
|||
var help = function () { | |||
$('#wmd-button-bar-help').toggle(300,'swing'); | |||
} | |||
|
|||
if($('#bbp_reply_content').length>0){ | |||
id = "bbp_reply_content"; | |||
}else if($('#bbp_topic_content').length>0){ | |||
id = "bbp_topic_content"; | |||
}else{ | |||
id = "comment"; | |||
} | |||
|
|||
var editor = new Markdown.Editor(converter2, id, { handler: help }); | |||
editor.run(); | |||
|
|||
if (typeof prettyPrint == 'function') { | |||
prettyPrint(); | |||
editor.hooks.chain("onPreviewRefresh", function () { | |||
$('.wmd-preview pre').addClass('prettyprint'); | |||
prettyPrint(); | |||
}); | |||
} | |||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,32 @@ | |||
A javascript port of Markdown, as used on Stack Overflow | |||
and the rest of Stack Exchange network. | |||
|
|||
Largely based on showdown.js by John Fraser (Attacklab). | |||
|
|||
Original Markdown Copyright (c) 2004-2005 John Gruber | |||
<http://daringfireball.net/projects/markdown/> | |||
|
|||
|
|||
Original Showdown code copyright (c) 2007 John Fraser | |||
|
|||
Modifications and bugfixes (c) 2009 Dana Robinson | |||
Modifications and bugfixes (c) 2009-2011 Stack Exchange Inc. | |||
|
|||
Permission is hereby granted, free of charge, to any person obtaining a copy | |||
of this software and associated documentation files (the "Software"), to deal | |||
in the Software without restriction, including without limitation the rights | |||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |||
copies of the Software, and to permit persons to whom the Software is | |||
furnished to do so, subject to the following conditions: | |||
|
|||
The above copyright notice and this permission notice shall be included in | |||
all copies or substantial portions of the Software. | |||
|
|||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |||
THE SOFTWARE. | |||
|
Oops, something went wrong.