paulgorman.org

< ^ txt

Fri Mar 9 09:07:14 EST 2018 Slept from ten to seven. Woke briefly around five. High of thirty-four today. Scattered snow. Stopped at Starbucks on my way into work. Work: - Work on MECS Done. Go geo-IP service: https://github.com/ulule/ipfix Found a Parsedown bug, and submitted an issue on GitHub. https://github.com/erusev/parsedown/issues/565 ``` <?php require "Parsedown.php"; $p = new Parsedown(); $tests = array( // The first test fails with <p><a href="mailto:strong&gt;first.last@example.com&lt;/strong">strong&gt;first.last@example.com&lt;/strong</a></p> '<strong>first.last@example.com</strong>' => '<p><strong>first.last@example.com</strong></p>', 'first.last@example.com' => '<p>first.last@example.com</p>', '**first.last@example.com**' => '<p><strong>first.last@example.com</strong></p>', '<first.last@example.com>' => '<p><a href="mailto:first.last@example.com">first.last@example.com</a></p>', '**<first.last@example.com>**' => '<p><strong><a href="mailto:first.last@example.com">first.last@example.com</a></strong></p>', ); foreach ($tests as $in => $want) { $got = $p->text($in); if ($got != $want) { echo("FAIL: INPUT $in WANTS $want BUT GOT $got \n"); } } ?> ``` ...and upstream fixed it. That was fast! Twenty-minute walk at lunch. Home: Watched episodes of the new Jessica Jones season on Netflix. Breakfast: sausage and egg sandwich, cafe latte Lunch: Thai noodles Dinner: Philly cheesesteak

< ^ txt