Parsedown: image size dimension attribute
2020-01-01 2020-01-26 20:13:26

markdown,parsedown,PHP,EN

This class BParsedown as an extension for "Parsedown" reads optional image size dimensions like =50x50 in markdown syntax and builds a proper image tag with width and height attributes from it. It supports inline syntax as well as markdown per reference.

pos. tested with Parsedown Release: 1.7.4.

Examples

Inline

markdown


![Odyssey2001.png](http://example.com/Odyssey2001.png = […]

javascript: remove value fom array
2019-12-31 2020-01-03 12:39:47

Javascript,EN

Q; How to remove a value from a javascript array ?

A: use splice method to cut off value from array


/**
 * remove value fom array
 */
Array.prototype.remove = function(mValue) {

    return this.splice(this.indexOf(mValue), 1);
}

// example array 
var aData = [1, 2, 3, 4, 5];

// usage: remove the value "4"
aData.remove(4);

// gives: [1, 2, 3, 5]
console.log(aData); 
~~~ […]

This website uses Cookies to provide you with the best possible service. Please see our Privacy Policy for more information. Click the check box below to accept cookies. Then confirm with a click on "Save".