If I use the following npm script:
"scripts": {
"lint:markdown": "markdownlint app/**/*.md",
},and run npm run lint:markdown, the glob only finds 5 files.
If I use the following npm script:
"scripts": {
"lint:markdown": "markdownlint app/**/*.md",
},and run npm run lint:markdown, the glob only finds 5 files.
| // Express | |
| const express = require('express'); | |
| const router = new express.Router(); | |
| // IndieAuth | |
| const IndieAuth = require('indieauth-helper'); | |
| const auth = new IndieAuth({ | |
| secret: 'topSecretString' | |
| }); |
| 'post-types': [{ | |
| type: 'article', | |
| name: 'Article', | |
| path: { | |
| template: 'app/templates/article.njk', | |
| post: '_posts/{{ published }}-{{ slug }}.md', | |
| file: 'images/{{ published }}/{{ slug }}/{{ filename }}', | |
| url: '{{ published }}/{{ slug }}' | |
| } | |
| }, { |
| <html> | |
| <body> | |
| <a class="that" href="yippee.html">That link</a> | |
| <script> | |
| var foo = function () { | |
| var $ = document.querySelector.bind(document) | |
| var el = { | |
| thatLink: $('a.that') | |
| } | |
| function addListeners () { |
| { | |
| "items": [ | |
| { | |
| "name": "Last modified time", | |
| "value": "2004-12-23T23:33Z" | |
| }, | |
| { | |
| "name": "Recommended update interval", | |
| "value": "60s" | |
| }, |
| # src/base/scss/ | |
| - base.scss | |
| - helpers/ | |
| - mixins.scss | |
| - variables.scss | |
| # src/components/button/ | |
| - button.scss |
| <!-- Arguments without quotes --> | |
| <!-- ISSUE: Only content between first two quotes rendered --> | |
| <figure class="figure class1"><div class="figure__main"> | |
| <p><img src="/assets/images/2008/12/chicago.jpg" alt="" /></p> | |
| </div><figcaption class="figure__caption"><p>Cloud Gate</p> | |
| </figcaption></figure> | |
| <!-- Arguments with single quotes, regardless of content --> | |
| <!-- ISSUE: Nothing generated if argument contains quotes --> | |
| <figure class="figure class1 class2"><div class="figure__main"> |
| desc "Replace email addresses in remarks with md5 hashed strings" | |
| task :hash do |t| | |
| FileList.new('source/_data/remarks/*.yml').each do |path| | |
| File.open(path, 'r+:utf-8') do |file_name| | |
| require 'digest/md5' | |
| private :hash | |
| def hash(email) | |
| email_address = email ? email.downcase.strip : '' | |
| Digest::MD5.hexdigest(email_address) |
| destination = 'public' | |
| source = 'source' | |
| desc "Concatenate CSS files" | |
| task :concatenate_css do | |
| files = FileList["#{source}/**/*.css"] | |
| concatenated_filename = "#{destination}/stylesheets/styles.css" | |
| File.open(concatenated_filename, "w") do |output| | |
| files.each do |input| |
| /** | |
| * Before grunt-contrib-uglify | |
| */ | |
| (function(doc) { | |
| if (document.querySelector) { | |
| var toggleClassName = function(element, toggleClass) { | |
| var reg = new RegExp('(\\s|^)' + toggleClass + '(\\s|$)'); | |
| if (!element.className.match(reg)) { | |
| element.className += ' ' + toggleClass; | |
| } else { |