Pandoc cannot convert a link's URL as expected.
Markdown:
[Document](./document.md)
HTML:
<?php | |
//This part would be included in the controller itself like so: | |
class Articles_Controller extends Controller { | |
public function __construct() { | |
parent::__construct(); | |
$this->filter('before', 'csrf')->on('post'); | |
$this->filter('before', 'ajax')->only(array('index', 'show', 'update')); | |
} |
<?php | |
/** | |
* Trait helps to allow for some limited overloading of | |
* methods in the class this is attached to. | |
*/ | |
trait Overloader { | |
/** |
<?php | |
function combos($data, &$all = array(), $group = array(), $val = null, $i = 0) { | |
if (isset($val)) { | |
array_push($group, $val); | |
} | |
if ($i >= count($data)) { | |
array_push($all, $group); | |
} else { | |
foreach ($data[$i] as $v) { |
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. |
# 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):] |
#!/usr/bin/python | |
# | |
# (originally entered at https://gist.github.com/1035399) | |
# | |
# License: GPLv3 | |
# | |
# To download the AFINN word list do: | |
# wget http://www2.imm.dtu.dk/pubdb/views/edoc_download.php/6010/zip/imm6010.zip | |
# unzip imm6010.zip | |
# |
Pandoc cannot convert a link's URL as expected.
Markdown:
[Document](./document.md)
HTML:
<?php | |
/** | |
* mb_str_pad | |
* | |
* @param string $input | |
* @param int $pad_length | |
* @param string $pad_string | |
* @param int $pad_type | |
* @return string |
<?php | |
/** | |
* | |
* You can find the complete tutorial for this here: | |
* https://pluginrepublic.com/woocommerce-custom-fields | |
* | |
* Alternatively, check out the plugin | |
* https://pluginrepublic.com/wordpress-plugins/woocommerce-product-add-ons-ultimate/ | |
* |
Replace all instances of <polyline
with <path
and points="
with d="M
.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1000px" height="1000px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
-<polyline fill="#FFFFFF" stroke="#000000" stroke-miterlimit="10" points="100.712,141.534 582.904,227.835 425.37,478.521
+