Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mapbox/rehype-prism
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.3.1
Choose a base ref
...
head repository: mapbox/rehype-prism
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.4.0
Choose a head ref
  • 3 commits
  • 6 files changed
  • 1 contributor

Commits on Jan 2, 2020

  1. Use Node 10, remove yarn, update snapshots (#13)

    * use Node 10, remove yarn
    
    * Update test.js.snap
    
    * update jest@latest to fix security alerts
    Katy DeCorah authored Jan 2, 2020
    Copy the full SHA
    4d367a1 View commit details
  2. Prepare 0.4.0

    Katy DeCorah committed Jan 2, 2020
    Copy the full SHA
    ae19518 View commit details
  3. 0.4.0

    Katy DeCorah committed Jan 2, 2020
    Copy the full SHA
    4e901a1 View commit details
Showing with 7,408 additions and 3,015 deletions.
  1. +1 −2 .travis.yml
  2. +4 −0 CHANGELOG.md
  3. +2 −2 __snapshots__/test.js.snap
  4. +7,398 −0 package-lock.json
  5. +3 −3 package.json
  6. +0 −3,008 yarn.lock
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
language: node_js
node_js:
- 4
cache: yarn
- 10
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.4.0

- Update snapshot, use Node 10, remove yarn in favor of package-lock.json, update Jest to fix security alerts.

## 0.3.1

- Allow uppercase language names in the `language-*` class (e.g. `language-CSS`).
4 changes: 2 additions & 2 deletions __snapshots__/test.js.snap
Original file line number Diff line number Diff line change
@@ -7,14 +7,14 @@ exports[`does nothing to code block without language- class 1`] = `"<pre><code>p
exports[`finds code and highlights 1`] = `
"<div>
<p>foo</p>
<pre class=\\"language-css\\"><code class=\\"language-css\\"><span class=\\"token selector\\">p </span><span class=\\"token punctuation\\">{</span> <span class=\\"token property\\">color</span><span class=\\"token punctuation\\">:</span> red <span class=\\"token punctuation\\">}</span></code></pre>
<pre class=\\"language-css\\"><code class=\\"language-css\\"><span class=\\"token selector\\">p</span> <span class=\\"token punctuation\\">{</span> <span class=\\"token property\\">color</span><span class=\\"token punctuation\\">:</span> red <span class=\\"token punctuation\\">}</span></code></pre>
</div>"
`;
exports[`handles uppercase languages correctly 1`] = `
"<div>
<p>foo</p>
<pre class=\\"language-css\\"><code class=\\"language-CSS\\"><span class=\\"token selector\\">p </span><span class=\\"token punctuation\\">{</span> <span class=\\"token property\\">color</span><span class=\\"token punctuation\\">:</span> red <span class=\\"token punctuation\\">}</span></code></pre>
<pre class=\\"language-css\\"><code class=\\"language-CSS\\"><span class=\\"token selector\\">p</span> <span class=\\"token punctuation\\">{</span> <span class=\\"token property\\">color</span><span class=\\"token punctuation\\">:</span> red <span class=\\"token punctuation\\">}</span></code></pre>
</div>"
`;
7,398 changes: 7,398 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mapbox/rehype-prism",
"version": "0.3.1",
"version": "0.4.0",
"description": "rehype plugin to highlight code blocks in HTML with Prism",
"main": "index.js",
"scripts": {
@@ -38,7 +38,7 @@
"eslint": "^4.0.0",
"eslint-plugin-node": "^5.0.0",
"husky": "^0.13.4",
"jest": "^20.0.4",
"jest": "^25.0.0",
"lint-staged": "^4.0.0",
"prettier": "^1.4.4",
"rehype": "^5.0.0"
@@ -60,6 +60,6 @@
"testRegex": "/test\\.js$"
},
"engines": {
"node": ">=4"
"node": ">=10"
}
}
3,008 changes: 0 additions & 3,008 deletions yarn.lock

This file was deleted.