- by Silvia Moreno-Garcia
- Started 2019/01/02
- Finished 2019/01/08
- Is this YA? Does it matter? I enjoyed this, and I like that it didn’t end in an easy cliché.
- by Helen Oyeyemi
| const markdownIt = require("markdown-it"); | |
| const md = new markdownIt(); | |
| const dbg = require("debug")("responsiver-config"); | |
| const runAfterHook = (image, document) => { | |
| let imageUrl = | |
| image.getAttribute("data-pristine") || image.getAttribute("src"); | |
| let caption = image.getAttribute("title"); | |
| if (caption !== null) { | |
| caption = md.renderInline(caption.trim()); |
module.exports = (image, caption, className) => {
const classMarkup = className ? ` class="${className}"` : '';
const captionMarkup = caption ? `<figcaption>${caption}</figcaption>` : '';
return `<figure${classMarkup}><img src="/img/${image}" />${captionMarkup}</figure>`;
// the line below does all this in one line, but is more confusing:
// return `<figure${className ? ` class="${className}"` : ''}><img src="/img/${image}" />${caption ? `<figcaption>${caption}</figcaption>` : ''}</figure>`;
};
| <?php | |
| /** | |
| * @file | |
| * Field DOS Feed Status Module file | |
| * | |
| * This module allows site administrators to send a stock warning | |
| * email to a specified user or users through the admin interface. | |
| * Administrators can configure the default email including token replacement. | |
| */ | |
| //define('EXHIBIT_ITEMS_MODIFICATION_DATE', 'none'); |
| // Place your key bindings in this file to overwrite the defaults | |
| [ | |
| { "key": "shift+alt+down", "command": "cursorColumnSelectDown", "when": "editorTextFocus" }, | |
| { "key": "shift+alt+up", "command": "cursorColumnSelectUp", "when": "editorTextFocus" }, | |
| { "key": "cmd+l", "command": "workbench.action.gotoLine" }, | |
| { "key": "shift+ctrl+d", "command": "editor.action.copyLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, | |
| { "key": "ctrl+cmd+down", "command": "editor.action.moveLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, | |
| { "key": "ctrl+cmd+up", "command": "editor.action.moveLinesUpAction", "when": "editorTextFocus && !editorReadonly" }, | |
| { "key": "shift+cmd+[", "command": "workbench.action.previousEditor" }, | |
| { "key": "shift+cmd+]", "command": "workbench.action.nextEditor" }, |
| /* Modular Scale */ | |
| $ms-base: 1.125em; | |
| $ms-ratio: $golden; | |
| $ms-range: | |
| 1.05 20em, | |
| 1.33 81.25em; | |
| .entry-meta { | |
| @include ms-respond(font-size, -1); |
| [core] | |
| repositoryformatversion = 0 | |
| filemode = true | |
| bare = false | |
| logallrefupdates = true | |
| ignorecase = true | |
| precomposeunicode = true | |
| [remote "github"] | |
| url = GITHUB REMOTE REPO URL HERE | |
| fetch = +refs/heads/*:refs/remotes/github/* |
| /* CSS reset with box-sizing fix */ | |
| html, body, div, span, applet, object, iframe, | |
| h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
| a, abbr, acronym, address, big, cite, code, | |
| del, dfn, em, img, ins, kbd, q, s, samp, | |
| small, strike, strong, sub, sup, tt, var, | |
| b, u, i, center, | |
| dl, dt, dd, ol, ul, li, | |
| fieldset, form, label, legend, | |
| table, caption, tbody, tfoot, thead, tr, th, td, |