Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github emoji fix (previous website moved) #839

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
104 changes: 52 additions & 52 deletions docs/editormd.js.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: editormd.js</title>

<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

<h1 class="page-title">Source: editormd.js</h1>






<section>
<article>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: editormd.js</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Source: editormd.js</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code>/*
* Editor.md
*
Expand Down Expand Up @@ -3192,7 +3192,7 @@ <h1 class="page-title">Source: editormd.js</h1>

// Emoji graphics files url path
editormd.emoji = {
path : "http://www.emoji-cheat-sheet.com/graphics/emojis/",
path : "https://www.webfx.com/tools/emoji-cheat-sheet/graphics/emojis/",
ext : ".png"
};

Expand Down Expand Up @@ -4382,26 +4382,26 @@ <h1 class="page-title">Source: editormd.js</h1>
return editormd;

}));
</code></pre>
</article>
</section>




</div>

<nav>
<h2><a href="index.html">Home</a></h2>
</nav>

<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0</a> on Mon Jun 08 2015 01:07:40 GMT+0800 (中国标准时间)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
</code></pre>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0</a> on Mon Jun 08 2015 01:07:40 GMT+0800 (中国标准时间)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
2 changes: 1 addition & 1 deletion editormd.amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -3434,7 +3434,7 @@

// Emoji graphics files url path
editormd.emoji = {
path : "http://www.emoji-cheat-sheet.com/graphics/emojis/",
path : "https://www.webfx.com/tools/emoji-cheat-sheet/graphics/emojis/",
ext : ".png"
};

Expand Down
4 changes: 2 additions & 2 deletions editormd.amd.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions editormd.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions examples/emoji.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<h1>Emoji 表情</h1>
<p>Supports:</p>
<ul style="margin: 10px 0 0 18px;">
<li>Github emoji : <a href="http://www.emoji-cheat-sheet.com/" target="_blank">http://www.emoji-cheat-sheet.com/</a></li>
<li>Github emoji : <a href="https://www.webfx.com/tools/emoji-cheat-sheet/" target="_blank">https://www.webfx.com/tools/emoji-cheat-sheet/</a></li>
<li>Twitter Emoji(Twemoji) : <a href="http://twitter.github.io/twemoji/preview.html" target="_blank">http://twitter.github.io/twemoji/preview.html</a></li>
<li>FontAwesome icon font emoji : <a href="http://fortawesome.github.io/Font-Awesome/icons/" target="_blank">http://fortawesome.github.io/Font-Awesome/icons/</a></li>
<li>Editor.md logo icon font emoji</li>
Expand All @@ -30,7 +30,7 @@ <h1>Emoji 表情</h1>

Emoji cheat sheet for Campfire and GitHub.

[http://www.emoji-cheat-sheet.com/](http://www.emoji-cheat-sheet.com/)
[https://www.webfx.com/tools/emoji-cheat-sheet/](https://www.webfx.com/tools/emoji-cheat-sheet/)

**Usage:**

Expand Down Expand Up @@ -97,7 +97,7 @@ <h1>Emoji 表情</h1>
##### H5 dsfdfsfd:smiley:dsfsfd @pandao sfd:smiley:dsfdf:fa-edit: fdsfsdf:fa-save:dsfsdf
###### H6 dsfdfsfd:smiley:dsfsfdsfd:smiley:dsfdf:fa-edit: fdsfsdf:fa-star:dsfsdf

[:smiley:](http://www.emoji-cheat-sheet.com/ "link + emoji") link + emoji
[:smiley:](https://www.webfx.com/tools/emoji-cheat-sheet/ "link + emoji") link + emoji

- dafs@pandao sdfsdaf:smiley:dfsdfsdf
- dafssdfsdaf:smiley:dfsdfsdf @pandao
Expand Down Expand Up @@ -165,7 +165,7 @@ <h1>Emoji 表情</h1>

// You can custom Emoji's graphics files url path
editormd.emoji = {
path : "http://www.emoji-cheat-sheet.com/graphics/emojis/",
path : "https://www.webfx.com/tools/emoji-cheat-sheet/graphics/emojis/",
ext : ".png"
};

Expand Down
2 changes: 1 addition & 1 deletion plugins/help-dialog/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

##### Emoji表情参考 (Emoji reference)

- [Github emoji](http://www.emoji-cheat-sheet.com/ "Github emoji")
- [Github emoji](https://www.webfx.com/tools/emoji-cheat-sheet/ "Github emoji")
- [Twitter Emoji \(Twemoji\)](http://twitter.github.io/twemoji/preview.html "Twitter Emoji \(Twemoji\)")
- [FontAwesome icons emoji](http://fortawesome.github.io/Font-Awesome/icons/ "FontAwesome icons emoji")

Expand Down
2 changes: 1 addition & 1 deletion src/editormd.js
Original file line number Diff line number Diff line change
Expand Up @@ -3355,7 +3355,7 @@

// Emoji graphics files url path
editormd.emoji = {
path : "http://www.emoji-cheat-sheet.com/graphics/emojis/",
path : "https://www.webfx.com/tools/emoji-cheat-sheet/graphics/emojis/",
ext : ".png"
};

Expand Down
8 changes: 4 additions & 4 deletions tests/marked-emoji-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
#### H4 dsfdfsfd:smiley:dsfsfdsfd:smiley:dsfdf:fa-edit: fdsfsdf:fa-save:dsfsdf
##### H5 dsfdfsfd:smiley:dsfsfdsfd:smiley:dsfdf:fa-edit: fdsfsdf:fa-save:dsfsdf
###### H6 dsfdfsfd:smiley:dsfsfdsfd:smiley:dsfdf:fa-edit: fdsfsdf:fa-star:dsfsdf
[:smiley:](http://www.emoji-cheat-sheet.com/ "link + emoji") link + emoji
[:smiley:](https://www.webfx.com/tools/emoji-cheat-sheet/ "link + emoji") link + emoji
- dafssdfsdaf:smiley:dfsdfsdf
- dafssdfsdaf:smiley:dfsdfsdf
- dafssdfsdaf:smiley:dfsdfsdf
Expand Down Expand Up @@ -147,7 +147,7 @@
text = text.replace(new RegExp(matchs[i]), function($1, $2){
var faMatchs = $1.match(faIconReg);
//console.log("famatchs =>", faMatchs);
var name = $1.replace(/:/g, ""); // http://www.emoji-cheat-sheet.com/graphics/emojis/smile.png
var name = $1.replace(/:/g, ""); // https://www.webfx.com/tools/emoji-cheat-sheet/graphics/emojis/smile.png
console.log("replace =>", name, $1, $2);

if (faMatchs)
Expand All @@ -170,10 +170,10 @@
}
else
{
return "<img src=\"http://www.emoji-cheat-sheet.com/graphics/emojis/"+name+".png\" />";
return "<img src=\"https://www.webfx.com/tools/emoji-cheat-sheet/graphics/emojis/"+name+".png\" />";
}
}
//return (faIconReg.test($1)) ? "<i class=\"fa "+name+"\"></i>" : (editormdLogoReg.test($1)) ? "<i class=\""+name+"\"></i>" : "<img src=\"http://www.emoji-cheat-sheet.com/graphics/emojis/"+name+".png\" />";
//return (faIconReg.test($1)) ? "<i class=\"fa "+name+"\"></i>" : (editormdLogoReg.test($1)) ? "<i class=\""+name+"\"></i>" : "<img src=\"https://www.webfx.com/tools/emoji-cheat-sheet/graphics/emojis/"+name+".png\" />";
});
}

Expand Down