Skip to content
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: remarkjs/react-markdown
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2d991aa1097e95064f0209fc6d3a15b6300c07c7
Choose a base ref
...
head repository: remarkjs/react-markdown
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 45b99778b440b37d8397d3773a65aca155a038dd
Choose a head ref
  • 18 commits
  • 46 files changed
  • 5 contributors

Commits on Oct 8, 2020

  1. Updated remark-parse github link (#447)

    Rostyslav Melnychuk authored Oct 8, 2020
    Copy the full SHA
    9b4eb84 View commit details

Commits on Oct 9, 2020

  1. Fix link to demo in readme

    Closes GH-472.
    
    Reviewed-by: Titus Wormer <tituswormer@gmail.com>
    gilisho authored Oct 9, 2020
    Copy the full SHA
    ca25be1 View commit details

Commits on Oct 15, 2020

  1. Copy the full SHA
    6eff8d1 View commit details
  2. Run tests on node 12

    rexxars authored and wooorm committed Oct 15, 2020
    Copy the full SHA
    3260f57 View commit details
  3. Upgrade to remark-parse@6

    rexxars authored and wooorm committed Oct 15, 2020
    Copy the full SHA
    e400f6f View commit details
  4. Upgrade remark to version 8, unified to version 9

    These versions bring improvements to commonmark compliance and official typings.
    
    Closes GH-425.
    
    Reviewed-by: Titus Wormer <tituswormer@gmail.com>
    ChristianMurphy authored and wooorm committed Oct 15, 2020
    Copy the full SHA
    ebebf51 View commit details
  5. Change to clean project, update, refactor scripts

    Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
    
    Closes GH-476.
    wooorm authored Oct 15, 2020
    Copy the full SHA
    4f1a407 View commit details

Commits on Oct 16, 2020

  1. Move demo to website branch

    * Also move UMD bundle to root to remove empty folder
    
    Closes GH-477.
    Closes GH-486.
    wooorm authored Oct 16, 2020
    Copy the full SHA
    a9f163d View commit details

Commits on Oct 17, 2020

  1. Rewrite readme for unified, more examples

    * Lowercase filenames to scream less
    * Add `remark-cli`, `remark-preset-wooorm` to format prose
    * Use imports and fancy new JS features
    * Add link to a markdown cheatsheet, as many questions are about that
    * Add details tags showing equivalent JSX for examples, to clarify how markdown
      works
    * Refactor options list, clean signatures
    * Add examples on plugins, plugins w/ options, renderers (syntax highlighting),
      and combining plugins w/ renderers (math)
    * Add sections on why to use this, security, contributing, related projects
    * Add test for `react-katex` integration
    
    Closes GH-70.
    Closes GH-191.
    Related to GH-474.
    Closes GH-479.
    Closes GH-480.
    Related to GH-483.
    Closes GH-485.
    
    Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
    Reviewed-by: Espen Hovlandsdal <espen@hovlandsdal.com>
    wooorm authored Oct 17, 2020
    Copy the full SHA
    b3aa6e0 View commit details
  2. Refactor and test for 100% coverage

    Also fixes a couple of things:
    
    * Add test for potential prototype injection
    * Fix duplicate definitions to prefer the first to match CommonMark
    * Fix to set empty position information, instead of a fake one
    * Fix to set empty `alt=""` on images (resources and references) w/o alt text
    * Remove defaultProps if handled in code
    * Refactor to let unified handle given plugins
    * Refactor to let clarify unified plugins vs. custom transforms
    * Refactor to significantly improve performance when (dis)allowing nodes,
      and probably also fix a lot of bugs with it (the tags not being stripped
      in some of the issues)
    
    Closes GH-487.
    wooorm authored Oct 17, 2020
    Copy the full SHA
    22a5e49 View commit details
  3. Change default branch to main

    wooorm committed Oct 17, 2020
    Copy the full SHA
    34b0883 View commit details
  4. Remove docs on source

    This is a very soft deprecation of the `source` prop, as `children`
    can already be used.
    
    Closes GH-483.
    wooorm committed Oct 17, 2020
    Copy the full SHA
    2675ae2 View commit details
  5. Add allowDangerousHtml, preferred over escapeHtml

    This is a very soft deprecation of the `escapeHtml` prop, as `allowDangerousHtml`
    is more explicit.
    
    Closes GH-484.
    wooorm committed Oct 17, 2020
    Copy the full SHA
    7a5e3a1 View commit details
  6. Add note

    wooorm committed Oct 17, 2020
    Copy the full SHA
    4f5dbe2 View commit details

Commits on Oct 18, 2020

  1. Add type tests

    Closes GH-482.
    Closes GH-490.
    
    Reviewed-by: Titus Wormer <tituswormer@gmail.com>
    ChristianMurphy authored Oct 18, 2020
    Copy the full SHA
    d29478f View commit details

Commits on Oct 19, 2020

  1. Refactor scripts

    wooorm committed Oct 19, 2020
    Copy the full SHA
    5d6c9f1 View commit details
  2. Update changelog.md

    wooorm committed Oct 19, 2020
    Copy the full SHA
    eeea3c2 View commit details
  3. 5.0.0

    wooorm committed Oct 19, 2020
    Copy the full SHA
    45b9977 View commit details
23 changes: 15 additions & 8 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
{
"presets": [
"@babel/preset-react",
["@babel/preset-env", {
"targets": {
"browsers": ["ie >= 9"]
[
"@babel/preset-env",
{
"targets": {
"browsers": ["ie >= 9"]
}
}
}]
]
],

"env": {
"production": {
"plugins": [["transform-react-remove-prop-types", {
"removeImport": true
}]]
"plugins": [
[
"transform-react-remove-prop-types",
{
"removeImport": true
}
]
]
}
}
}
20 changes: 1 addition & 19 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,27 +1,9 @@
# http://editorconfig.org
root = true

[*]
# Use hard or soft tabs
indent_style = space

# Size of a single indent
indent_size = tab

# Number of columns representing a tab character
tab_width = 2

# Use line-feed as EOL indicator
indent_size = 2
end_of_line = lf

# Use UTF-8 character encoding for all files
charset = utf-8

# Remove any whitespace characters preceding newline characters
trim_trailing_whitespace = true

# Ensure file ends with a newline when saving
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
7 changes: 3 additions & 4 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
coverage
demo/dist
umd
lib
coverage/
lib/
react-markdown.min.js
12 changes: 0 additions & 12 deletions .eslintrc

This file was deleted.

40 changes: 6 additions & 34 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,36 +1,8 @@
# Logs
logs
coverage/
lib/
node_modules/
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
vendor

# UMD build
umd

# Babelified
lib

# Yarn lockfile
.DS_Store
package-lock.json
react-markdown.min.js
yarn.lock
18 changes: 0 additions & 18 deletions .npmignore

This file was deleted.

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
7 changes: 6 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
test/fixtures/runthrough.md
coverage/
lib/
*.html
*.json
*.md
react-markdown.min.js
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
language: node_js
node_js:
- '6'
- '8'
- '10'
- lts/dubnium
- node
after_script:
- npm install codeclimate-test-reporter && cat coverage/lcov.info | codeclimate
env:
global:
- secure: XR2+j2DOmq8FY5xKiJ4JGYFtMdrF+owqZpU6mq8nJH4bEACAGtATgrKy4agxC5ROMpt0BeU10dXXrtwQzMXdaI6oaPIhMEuzIc/Kcwhxx4zbcNSzqmwohwnL+BywfQvgGma/GPRGocpMdhIjU3GoomgxyAqKPJTSmuMQ8LOpZw9+OnjVhTwRh1rIaAEyXW+7S+H0O+oqENHx/3X0tYybC71/jMVBpRZ9o8Z09IxX2a1CAI2ZQ/U4wVkgbUbPl1ikh+mW7IU0DrGVNzpJdFGA944Upo65XWGrlU1h4J2Zr0A0TjYGCydYDzgxuCSfLXENm17R3xpY5RH8jmNYeoiSTbXNDjIw3uguxlhLJxmziXP2M0n5+fQT/rfIW5SGVIyAIfieKwD8xOyM62HqFMRCImgvh6VJsrtgBd5IHYWSJ+e08vMuGzniRx4S5ZYBE0cM1LZjOZT/+H/9ocLSRlGpI1q8KMz4LhFlRmuocJf2sdr/tI194Cxltcm0TJKnAFID7kQM/a/po6IPWgAISGlgxMNj1Cr8s16U78IUkykgc1da+/nGoq9yMKF7j5i1FPDdaekRNGeOmKqxMYiAM05WslzzNbC0zYL8geDpMCR4lKnfBlZJS4u6GhR5ZnzE+tx3h+S0q5qiXYdVON//WGtV9Ll/9r4G1gnEV8bFmnCKKC8=
- bash <(curl -s https://codecov.io/bash)
Loading