If multiple input files are given, pandoc will concatenate them all (with blank lines between them) before parsing. -- from Pandoc website
Pandoc command:
pandoc -s input1.md input2.md input3.md -o output.html
<?php | |
/** | |
* Return the number of pages of a PDF. | |
* | |
* Imagick::pingImage() takes too much when dealing with big files. | |
* | |
* Command to execute: | |
* | |
* gs -q -dNODISPLAY -c "(%s) (r) file runpdfbegin pdfpagecount = quit" |
# coding:utf-8 | |
import re | |
import panflute as pf | |
def action(elem, doc): | |
if isinstance(elem, pf.Link): | |
matches = list(re.finditer(r'(\.md)', elem.url)) | |
if matches: | |
m = matches[-1] | |
elem.url = elem.url[:m.start(1)] + '.html' + elem.url[m.end(1):] |
If multiple input files are given, pandoc will concatenate them all (with blank lines between them) before parsing. -- from Pandoc website
Pandoc command:
pandoc -s input1.md input2.md input3.md -o output.html
Pandoc cannot convert a link's URL as expected.
Markdown:
[Document](./document.md)
HTML:
net start [serviceName] | |
and | |
net stop [serviceName] | |
tell you whether they have succeeded or failed pretty clearly. For example | |
U:\>net stop alerter | |
The Alerter service is not started. |
<?php | |
/** | |
* Description of VideoStream | |
* | |
* @author Rana | |
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
*/ | |
class VideoStream | |
{ | |
private $path = ""; |
<?php | |
/** | |
* Get video info | |
* @param string $code | |
* @return object | null | |
*/ | |
function _get_info($code) | |
{ | |
$yt = json_decode(file_get_contents("https://www.youtube.com/oembed?url=https://youtu.be/{$code}&format=json")); |
<?php | |
/** | |
* Plugin Name: Custom Fields for WooCommerce | |
* Description: Add custom fields to WooCommerce products | |
* Version: 1.0.0 | |
* Author: Gareth Harris | |
* Author URI: https://pluginrepublic.com/ | |
* Text Domain: cfwc | |
* WC requires at least: 3.4.0 | |
* WC tested up to: 3.4.2 |
<?php | |
/** | |
* Generate combinations from multidimensional array | |
*/ | |
function combos($data, $count, &$all = [], $group = [], $val = null, $i = 0) { | |
if (null !== $val) { | |
$group[] = $val; |