v9.1.7 (2024-01-18)
Dependency updates. Remove markdown-it-html5-embed
and replace it with lib/html5-embed
. Update tests.
- Upgrade markdown-it (and plugins) to ESM (with CJS fallbacks) by @eatyourgreens in #237
- [Security] Remove markdown-it-html5-embed by @eatyourgreens in #245
Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.6...v9.1.7
v9.1.6 (2023-11-30)
Dependency updates.
- Bump eslint from 8.53.0 to 8.54.0 by @dependabot in #229
- Bump jsdom from 22.1.0 to 23.0.0 by @dependabot in #230
- Bump @babel/cli from 7.23.0 to 7.23.4 by @dependabot in #231
Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.5...v9.1.6
v9.1.5 (2023-11-13)
Dependency updates.
- Bump @babel/core from 7.23.2 to 7.23.3 by @dependabot in #226
- Bump @babel/preset-env from 7.23.2 to 7.23.3 by @dependabot in #228
- Bump @babel/preset-react from 7.22.15 to 7.23.3 by @dependabot in #227
Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.4...v9.1.5
v9.1.4 (2023-11-06)
Dependency updates.
- Bump eslint-plugin-jsx-a11y from 6.7.1 to 6.8.0 by @dependabot in #220
- Run CI on Node 20 by @eatyourgreens in #222
- Bump chai-spies from 1.0.0 to 1.1.0 by @dependabot in #221
- Bump actions/checkout from 3 to 4 by @dependabot in #224
- Bump actions/setup-node from 3 to 4 by @dependabot in #225
- Bump eslint from 8.52.0 to 8.53.0 by @dependabot in #223
Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.3...v9.1.4
v9.1.3 (2023-10-31)
Bugfix: handle null values as empty strings.
Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.2...v9.1.3
v9.1.2 (2023-10-31)
Bugfix: cast all input values to strings.
Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.1...v9.1.2
v9.1.1 (2023-10-31)
- Optimise Markdown and useMarkdownz by @eatyourgreens in #217
Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.1.0...v9.1.1
v9.1.0 (2023-10-31)
- Refactor
Markdownz
as a functional component. - Refactor the Rehype code into
utils.getComponentTree
. - Return a React component tree from the
useMarkdownz
hook.
// render HTML as JSX
import { utils } from 'markdownz';
const html = '<p>This is a test paragraph, with <a href="https://www.zooniverse.org">a link.</a>';
const reactChildren = utils.getComponentTree({ html });
return <div>{reactChildren}</div>;
import { useMarkdownz } from 'markdownz';
const markdownChildren = useMarkdownz({ content: 'This is some markdown', debug: true });
return <>{markdownChildren}</>;
Full Changelog: https://github.com/zooniverse/markdownz/compare/v9.0.0...v9.1.0
v9.0.0 (2023-10-30)
Remove dangerouslySetInnerHTML
. Render the HTML output with rehype-react
.
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.5.0...v9.0.0
v8.5.0 (2023-10-30)
Add a useMarkdownz
hook.
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.4.1...v8.5.0
v8.4.1 (2023-10-24)
Dependency updates. Upgrade ESLint from 4 to 8.
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.4.0...v8.4.1
v8.4.0 (2023-10-10)
Support tree-shaking with sideEffects: false
.
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.3.3...v8.4.0
v8.3.3 (2023-10-10)
Support NodeJS runtimes.
- Support DOMPurify on Node by @eatyourgreens in #206
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.3.2...v8.3.3
v8.3.2 (2023-10-06)
Allow embedded YouTube iframes.
- Allow embedded iframes for YouTube content by @eatyourgreens in #203
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.3.1...v8.3.2
v8.3.1 (2023-10-06)
Allow target=_blank
on external links, in sanitised HTML.
- Allow links to open with target=_blank by @eatyourgreens in #202
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.3.0...v8.3.1
v8.3.0 (2023-10-06)
Require markdown-it
13 for all plugins and samitise output HTML by default.
- [Security] Sanitise HTML and update dependencies by @eatyourgreens in #201
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.2.0...v8.3.0
v8.2.0 (2023-10-04)
Allow (@test-user) to be auto-linked as a username mention.
- Allow username mentions in brackets by @eatyourgreens in #200
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.1.4...v8.2.0
v8.1.4 (2023-10-02)
Dependency updates.
- Bump @babel/cli from 7.22.15 to 7.23.0 by @dependabot in #196
- Bump @babel/core from 7.22.20 to 7.23.0 by @dependabot in #197
- Bump chai from 4.3.8 to 4.3.10 by @dependabot in #198
- Bump markdown-it from 13.0.1 to 13.0.2 by @dependabot in #199
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.1.3...v8.1.4
v8.1.3 (2023-09-21)
Split the className
, content
and tag
props out from props that are passed as options to getHtml
.
- Refactor Markdownz props by @eatyourgreens in #195
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.1.2...v8.1.3
v8.1.2 (2023-09-18)
Add debug mode: <Markdownz debug>Some content.</Markdown>
.
- Add debug mode by @eatyourgreens in #194
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.1.1...v8.1.2
v8.1.1 (2023-09-17)
Bugfix for 'React is undefined' in v8.1.0.
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.1.0...v8.1.1
v8.1.0 (2023-09-17)
Export the HTML utilities separately from the React components.
import { utils } from 'markdownz';
const content = `
# A test document
This is a test [with a link](https://www.zooniverse.org).
`
const html = utils.getHTML({ content });
- Bump @babel/register from 7.22.5 to 7.22.15 by @dependabot in #186
- Bump @babel/preset-react from 7.22.5 to 7.22.15 by @dependabot in #189
- Bump @babel/core from 7.22.11 to 7.22.20 by @dependabot in #191
- Bump @babel/cli from 7.22.10 to 7.22.15 by @dependabot in #187
- Bump @babel/preset-env from 7.22.10 to 7.22.20 by @dependabot in #192
- Export HTML utilities by @eatyourgreens in #193
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.0.7...v8.1.0
v8.0.7 (2023-08-29)
- Bump @babel/cli from 7.22.5 to 7.22.6 by @dependabot in #169
- Bump @babel/core from 7.22.5 to 7.22.8 by @dependabot in #170
- Bump @babel/preset-env from 7.22.5 to 7.22.7 by @dependabot in #171
- Bump @babel/preset-env from 7.22.7 to 7.22.9 by @dependabot in #172
- Bump @babel/core from 7.22.8 to 7.22.9 by @dependabot in #174
- Bump @babel/cli from 7.22.6 to 7.22.9 by @dependabot in #173
- Bump eslint-plugin-react from 7.32.2 to 7.33.0 by @dependabot in #175
- Bump eslint-plugin-react from 7.33.0 to 7.33.1 by @dependabot in #176
- Bump @babel/cli from 7.22.9 to 7.22.10 by @dependabot in #178
- Bump eslint-plugin-import from 2.27.5 to 2.28.0 by @dependabot in #177
- Bump @babel/preset-env from 7.22.9 to 7.22.10 by @dependabot in #180
- Bump @babel/core from 7.22.9 to 7.22.10 by @dependabot in #179
- Bump eslint-plugin-import from 2.28.0 to 2.28.1 by @dependabot in #181
- Bump eslint-plugin-react from 7.33.1 to 7.33.2 by @dependabot in #182
- Bump @babel/core from 7.22.10 to 7.22.11 by @dependabot in #183
- Bump chai from 4.3.7 to 4.3.8 by @dependabot in #184
Full Changelog: https://github.com/zooniverse/markdownz/compare/v8.0.6...v8.0.7
v8.0.6 (2023-07-10)
- Bump tough-cookie from 4.1.2 to 4.1.3 by @dependabot in #168
v8.0.5 (2023-06-13)
- Bump jsdom from 22.0.0 to 22.1.0 by @dependabot in #158
- Bump @babel/preset-env from 7.21.5 to 7.22.2 by @dependabot in #160
- Bump @babel/preset-react from 7.18.6 to 7.22.3 by @dependabot in #159
- Bump @babel/core from 7.21.8 to 7.22.1 by @dependabot in #161
- Bump @babel/cli from 7.21.5 to 7.22.5 by @dependabot in #163
- Bump @babel/core from 7.22.1 to 7.22.5 by @dependabot in #167
- Bump @babel/preset-react from 7.22.3 to 7.22.5 by @dependabot in #164
- Bump @babel/register from 7.21.0 to 7.22.5 by @dependabot in #165
- Bump @babel/preset-env from 7.22.2 to 7.22.5 by @dependabot in #166
v8.0.4 (2023-05-11)
- Bump jsdom from 21.1.0 to 21.1.1 by @dependabot in #147
- Bump @babel/core from 7.21.0 to 7.21.3 by @dependabot in #148
- Bump @twemoji/api from 14.1.0 to 14.1.1 by @dependabot in #149
- Bump @twemoji/api from 14.1.1 to 14.1.2 by @dependabot in #150
- Bump @babel/preset-env from 7.20.2 to 7.21.5 by @dependabot in #153
- Bump @babel/core from 7.21.3 to 7.21.8 by @dependabot in #157
- Bump @babel/cli from 7.21.0 to 7.21.5 by @dependabot in #155
- Bump jsdom from 21.1.1 to 22.0.0 by @dependabot in #156
v8.0.3 (2023-03-01)
- Bump eslint-plugin-import from 2.27.4 to 2.27.5 by @dependabot in #138
- Bump eslint-plugin-react from 7.32.1 to 7.32.2 by @dependabot in #141
- Build and test with Node 18 by @eatyourgreens in #142
- Bump markdown-it-anchor from 8.6.6 to 8.6.7 by @dependabot in #143
- Bump @babel/core from 7.20.12 to 7.21.0 by @dependabot in #146
- Bump @babel/register from 7.18.9 to 7.21.0 by @dependabot in #144
- Bump @babel/cli from 7.20.7 to 7.21.0 by @dependabot in #145
v8.0.2 (2023-01-23)
- Bump eslint-plugin-import from 2.26.0 to 2.27.4 by @dependabot in #134
- Bump eslint-plugin-jsx-a11y from 6.6.1 to 6.7.1 by @dependabot in #135
- Bump jsdom from 21.0.0 to 21.1.0 by @dependabot in #139
- Bump eslint-plugin-react from 7.31.11 to 7.32.1 by @dependabot in #137
- Bump twemoji to 14.1.0 by @eatyourgreens in #140
v8.0.1 (2023-01-12)
- Bump jsdom from 20.0.3 to 21.0.0 by @dependabot in #132
- use new base url for twemoji by @camallen in #133
v8.0.0 (2023-01-06)
- Build with Babel 7.
- Support the new React automatic runtime.
- Add an ESM build.
v7.10.2 (2023-01-06)
Security
npm audit fix
.
Merged pull requests:
- Bump markdown-it-anchor from 8.6.5 to 8.6.6 #130
v7.10.1 (2022-12-15)
Closed issues:
- Update link to supported emoji #127
v7.10.0 (2022-12-12)
Merged pull requests:
- Bump markdown-it-anchor from 8.4.1 to 8.6.5 #123
- Bump react-dom from 15.6.2 to 15.7.0 #124
- Bump twemoji from 13.1.0 to 14.0.2 #125
- Bump mocha from 10.1.0 to 10.2.0 #126
v7.9.0 (2022-11-28)
Merged pull requests:
- Bump react-test-renderer from 15.6.2 to 15.7.0 #118
- Bump markdown-it from 12.3.2 to 13.0.1 #119
- Bump eslint-plugin-react from 7.9.1 to 7.31.11 #120
- Bump jsdom from 16.5.0 to 20.0.3 #121
- Bump prop-types from 15.7.2 to 15.8.1 #122
v7.8.6 (2022-11-14)
Merged pull requests:
- Bump markdown-it-emoji from 2.0.0 to 2.0.2 #117
- Bump eslint-plugin-import from 2.13.0 to 2.26.0 #114
- Bump react from 15.6.2 to 15.7.0 #113
v7.8.5 (2022-11-13)
Merged pull requests:
- Bump minimatch and mocha #112
v7.8.4 (2022-11-13)
Merged pull requests:
- Bump enzyme from 2.8.2 to 3.11.0 #104
- Bump chai-spies from 0.7.1 to 1.0.0 #105
- Bump babel-preset-react from 6.16.0 to 6.24.1 #106
- Bump eslint-plugin-jsx-a11y from 6.0.3 to 6.6.1 #108
- Bump chai from 3.5.0 to 4.3.7 #109
- npm audit fix #111
v7.8.3 (2022-10-06)
Merged pull requests:
- Bump css-what from 2.1.0 to 2.1.3 #103
v7.8.2 (2022-08-16)
Merged pull requests:
v7.8.1 (2022-01-18)
Merged pull requests:
- Upgrade outdated dependencies #99
v7.8.0 (2022-01-18)
Security fixes:
- [Security] Bump markdown-it from 8.4.1 to 12.3.2 #98
v7.7.2 (2021-06-09)
Security fixes:
- [Security] Bump hosted-git-info from 2.6.1 to 2.8.9 #91 (dependabot-preview[bot])
- [Security] Bump ua-parser-js from 0.7.14 to 0.7.28 #90 (dependabot-preview[bot])
- [Security] Bump lodash from 4.17.20 to 4.17.21 #89 (dependabot-preview[bot])
- [Security] npm audit fix #88 (eatyourgreens)
- [Security] Bump ini from 1.3.5 to 1.3.8 #87 (dependabot-preview[bot])
- [Security] Bump lodash from 4.17.14 to 4.17.20 #84 (dependabot-preview[bot])
Merged pull requests:
- Add noreferrer to untrusted links #93 (eatyourgreens)
- Bump ua-parser-js from 0.7.14 to 0.7.28 #92 (dependabot[bot])
- Bump nwmatcher from 1.4.1 to 1.4.4 #85 (dependabot[bot])
v7.7.1 (2019-07-22)
Implemented enhancements:
- Update plugin to filter out support user account #82
- Add support to the restricted names list #83 (srallen)
v7.7.0 (2019-07-17)
Closed issues:
- Add
@support
to markdownz help #80
Merged pull requests:
v7.6.6 (2019-07-11)
Security fixes:
- [Security] Bump lodash from 4.17.11 to 4.17.14 #79 (dependabot-preview[bot])
- [Security] Bump lodash.merge from 4.6.0 to 4.6.2 #78 (dependabot-preview[bot])
v7.6.5 (2019-06-04)
Security fixes:
- [Security] Bump tar from 4.4.1 to 4.4.9 #77 (dependabot-preview[bot])
- [Security] Bump lodash from 4.17.10 to 4.17.11 #75 (dependabot-preview[bot])
- [Security] Bump extend from 3.0.1 to 3.0.2 #74 (dependabot-preview[bot])
v7.6.4 (2018-11-05)
Merged pull requests:
- Add noopener nofollow with target=_blank #73 (eatyourgreens)
v7.6.3 (2018-07-27)
Merged pull requests:
v7.6.2 (2018-06-27)
Merged pull requests:
- Manually update packages based on npm audit warnings #70 (srallen)
- add a changelog #69 (eatyourgreens)
v7.6.1 (2018-06-21)
Closed issues:
- Add new plugin to support HTML5 audio and video #60
Merged pull requests:
v7.6.0 (2018-05-17)
Merged pull requests:
- Install react packages as dev dependencies #67 (eatyourgreens)
v7.5.0 (2018-03-09)
Closed issues:
Merged pull requests:
- Add support for <audio> and <video> #66 (eatyourgreens)
v7.4.2 (2018-02-21)
Merged pull requests:
- Only process footnote links if component is mounted #63 (eatyourgreens)
v7.4.1 (2018-01-19)
Merged pull requests:
v7.4.0 (2018-01-19)
v7.3.1 (2017-08-17)
Merged pull requests:
v7.3.0 (2017-08-07)
Closed issues:
- [RFC] Add MarkdownHelp component to Markdownz #57
Merged pull requests:
- Add MarkdownHelp component #58 (jelliotartz)
v7.2.1 (2017-06-19)
Merged pull requests:
v7.2.0 (2017-05-18)
Merged pull requests:
v7.1.0 (2017-05-15)
Closed issues:
Merged pull requests:
- React 15.4 #52 (eatyourgreens)
- Bump version #51 (parrish)
- Require spacing for @-mentions #50 (parrish)
- Transpile and refactor #49 (parrish)
- Fix export syntax #48 (rogerhutchings)
v5.0.0 (2016-11-22)
Closed issues:
- babelify peer dependency #35
Merged pull requests:
- React 15 #47 (eatyourgreens)
- Version bump #46 (parrish)
- Add markdown-anchor #45 (eatyourgreens)
- Version bump #44 (parrish)
- Add support for table-of-contents #43 (eatyourgreens)
v4.1.5 (2016-09-22)
4.1.5 (2016-09-22)
Implemented enhancements:
- Add support for embedded youtube videos #40 (eatyourgreens)
Closed issues:
- (Moved to "Panoptes-Front-End") #41
- Example image is broken #33
- Tests fail under Firefox/IE #26
- Add rel="nofollow" to external links? #22
Merged pull requests:
- Update packages and fix footnotes #42 (parrish)
- Preserve separator when parsing tags #39 (parrish)
- Fix Travis #38 (brian-c)
- Parses tags correctly #37 (parrish)
- import statements instead of requires #36 (amy-langley)
- secure links and move to zoo logo from github #34 (camallen)
- Support the defaultValue prop... #31 (brian-c)
- Fix hashtag links to correctly go to the hashtag results, and not... #30 (alexbfree)
- Add previewing prop to readme #29 (itsravenous)
- Honour preview prop lifecycle #28 (itsravenous)
- Attempt to fix tests in Firefox/IE #27 (chrissnyder)
- Update to React 0.14.x #25 (chrissnyder)
- Add rel=nofollow attr to external markdown links #24 (aweiksnar)
v3.0.3 (2015-10-09)
v3.0.2 (2015-10-09)
v3.0.1 (2015-09-28)
Merged pull requests:
v3.0.0 (2015-09-25)
Merged pull requests:
v2.5.1 (2015-09-22)
v2.5.0 (2015-09-22)
Merged pull requests:
v2.4.0 (2015-09-22)
Merged pull requests:
v2.3.0 (2015-09-22)
Merged pull requests:
v2.2.0 (2015-09-11)
Merged pull requests:
v2.1.0 (2015-09-02)
Closed issues:
- Incorrect matches #11
Merged pull requests:
- Update tests for prefix change #15 (aweiksnar)
- Add markdownit extension to open links in new tabs #14 (aweiksnar)
v2.0.1 (2015-08-20)
Merged pull requests:
v2.0.0 (2015-08-20)
Closed issues:
- React Router Warnings #8
Merged pull requests:
v1.0.4 (2015-08-12)
Merged pull requests:
v1.0.3 (2015-08-06)
Merged pull requests:
v1.0.2 (2015-08-04)
v1.0.1 (2015-08-04)
Merged pull requests:
- Setup zuul to test in sauce labs from travis-ci #3 (edpaget)
- Shallow dom setup & default props fix #2 (aweiksnar)
- Setup #1 (edpaget)
* This Changelog was automatically generated by [github_changelog_generator] (https://github.com/github-changelog-generator/github-changelog-generator)