Comments (7)
Email link support is coming in version 0.2.0.
from parsedown.
Great! You could create a milestone :)
BTW, here is a failing test for email: https://github.com/hkdobrev/parsedown/commit/2c21118d806d0e07651e788201211b3185876acc
from parsedown.
What's up with this one?
from parsedown.
Any progress on this? Seems simple, and it is part of the original markdown syntax.
from parsedown.
@erusev Great! Perhaps you should mention Parsedown does not support obfuscation in the readme or something. It could be useful for systems which rely on this feature and consider changing their Markdown parser.
from parsedown.
For someone who wants obfuscated emails, quick and dirty:
Add this somewhere outside the class.
function getObfuscatedEmailLink($email) {
$out = '';
for($i=0; $i < strlen($email); $i++){
$out .= "&#" . ord($email[$i]) . ";";
}
return $out;
}
In the element
function put this:
if($name == 'href') {
$markup .= " $name=\"".$value.'"';
} else {
$markup .= " $name=\"".self::escape($value).'"';
}
In the inlineEmailTag
put this:
$url = getObfuscatedEmailLink($url);
$url = "mailto:$url";
from parsedown.
@jenstornell
can you more explain on which lines I have to put the code in?
And is there also a way to do it for md files? I mean if i don't use markdown inline.
Cheers
from parsedown.
Related Issues (20)
- Demo broken? HOT 1
- PHP Code Eval HOT 1
- Code elements don't render inside lists
- What about using static methods instead of instanciating objects ?
- Maximum image size? HOT 2
- Nested Elements in the same Level
- Multi languagal HOT 1
- How to add class to list items?
- How to change the context in extensions?
- 187 ist die Gang
- Video Support HOT 1
- Bug: Uninitialized string offset: 1
- [bug] embeded <style> tag gets treated as text after the first code block
- image width HOT 1
- parsing email HOT 1
- lists not rendered properly with line()
- setSafeMode prevents multiple line breaks
- Parsedown extension to open in new window HOT 1
- Typo? `steam` -> `stream` HOT 1
- Allowing the spaces in start of lines?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parsedown.