Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
html-react-parser
HTML to React parser.
Collective -
Host: opensource -
https://opencollective.com/html-react-parser
- Website: https://b.remarkabl.org/html-react-parser
- Code: https://github.com/remarkablemark/html-react-parser
Replace HTML to DOM implementation with `html-dom-parser` package
github.com/remarkablemark/html-react-parser - 310f45e0602665a71905b18aaa2811f93e34e982 authored about 8 years ago by Mark <[email protected]>
Replace `htmlparser2` with `html-dom-parser` link and tidy up
other parts.
- Rename `test/data.json` to `test/helpers/mocks.json`
- Require mocks in test helpers index
- A...
Fix broken requires in tests now that `lib/html-to-dom-server.js`
and `lib/html-to-dom-client.js...
The HTML to DOM parser has been externalized to its own package.
Save to dependencies:
- html-d...
Change generic JavaScript `Error` object to more specific
`TypeError`:
- https://nodejs.org/api...
github.com/remarkablemark/html-react-parser - 40fec9d3eadf6d04609aadf724bfce20e5055c18 authored over 8 years ago by Mark <[email protected]>
- Update build (#25):
- Change filenames in `dist/` to `html-react-parser`
- Create examples (...
Tidy README instructions and examples
github.com/remarkablemark/html-react-parser - c7bfd40d5d43c3c66a73ce49479f5307c9f555ae authored over 8 years ago by Mark <[email protected]>Add examples
github.com/remarkablemark/html-react-parser - cfffc97fe9becfbe797b374bee3f72de892eb97f authored over 8 years ago by Mark <[email protected]>
Trim the fat and keep the example super concise and readable.
Refactor example to ES6 and JSX.
Make instructions clearer; simplifying examples by removing
unnecessary parts and rewriting them...
Separate the examples into their own code blocks. Rewrite in ES6
syntax for cleanliness and read...
Also add examples link.
github.com/remarkablemark/html-react-parser - cab1472c4e61a2265f02bbe046ce93007bb1b1b0 authored over 8 years ago by Mark <[email protected]>Make explanations/examples clearer, trim fat, and add hyperlinks.
github.com/remarkablemark/html-react-parser - 5a5e6cf420f2ee73961abff1a685b82a4668c0d6 authored over 8 years ago by Mark <[email protected]>github.com/remarkablemark/html-react-parser - e48a9f05626cbe3fc6fbc0ebd7f078e6658b0a63 authored over 8 years ago by Mark <[email protected]>
Create an HTML file in `./examples/ that loads the parser and
React with Require.js
- Create directory `./examples/`
- Create HTML file in `./examples/` with a working example of
...
Rename dist filenames and add webpack to `.npmignore`
github.com/remarkablemark/html-react-parser - 43f46ce8ef5b758e510ce07dccc9a91384bf75a8 authored over 8 years ago by Mark <[email protected]>github.com/remarkablemark/html-react-parser - 6747cd4e980b4eb145a8071b58af7cf5c08f55be authored over 8 years ago by Mark <[email protected]>
github.com/remarkablemark/html-react-parser - 79d00d0f2a834159d49e2cb2c444798460e302be authored over 8 years ago by Mark <[email protected]>
- Update README (#17 and #21):
- Improve documentation of `replace` option with the help of
...
Fix regex bug on client parser
github.com/remarkablemark/html-react-parser - 0bc51e0bac0fc1aaea8e9bb08abe9a0640a810ee authored over 8 years ago by Mark <[email protected]>
Confirm that for the client parser, if the first HTML element has
attributes, it should properly...
For the client parser, when the first element of the HTML string
has attributes, the regex will ...
Use webpack to build UMD bundle
github.com/remarkablemark/html-react-parser - 646b4a8391192e75c520118d1412e667e06314ef authored over 8 years ago by Mark <[email protected]>
Build the unminified and minified client-side bundles before
publish.
Remove branches where `process.env.NODE_ENV !== "production"`
especially for React.
npm scripts:
- build (unminified UMD bundle)
- build-min (minified UMD bundle)
`webpack.config....
github.com/remarkablemark/html-react-parser - 626d411ac815e9d11d36a6ef39466a10231267f9 authored over 8 years ago by Mark <[email protected]>github.com/remarkablemark/html-react-parser - bc66407ccced4c450f3158cde2a1c426ed441d37 authored over 8 years ago by Mark <[email protected]>
github.com/remarkablemark/html-react-parser - 3ae836a75521fddcada3d3f2d5c32a72d16b7f45 authored over 8 years ago by Mark <[email protected]>
Follow standard config:
https://webpack.github.io/docs/configuration.html
Export to `./dist/htm...
github.com/remarkablemark/html-react-parser - 8644c1c635f54c10ad693a88206989454ef7dee2 authored over 8 years ago by Mark <[email protected]>github.com/remarkablemark/html-react-parser - f1e3c2a1b0dfaa64871092a2502553dce9a61961 authored over 8 years ago by Mark <[email protected]>
Follow example: https://opensource.org/licenses/MIT
github.com/remarkablemark/html-react-parser - 1774d2cadc77b7772c3c36f8038ab20cec042816 authored over 8 years ago by Mark <[email protected]>Tidy and reword README for readability and add contributors
github.com/remarkablemark/html-react-parser - 9556e4fa1c10a1ebfb16ac7a220e089b84b86c07 authored over 8 years ago by Mark <[email protected]>
- Try to follow the 80 column rule for readability.
- Reword sentences to make them more underst...
Update README with advanced usage of `replace` method
github.com/remarkablemark/html-react-parser - 9241f1bb93da4eebe165eb3a921721669644d6ba authored over 8 years ago by Mark <[email protected]>Keeping child nodes that in turn gets parsed recursively.
github.com/remarkablemark/html-react-parser - 6a664de47fbca9b023b4cfaca1801e03c712019d authored over 8 years ago by Daniel Skogly (poacher2k) <[email protected]>
- Fix parsing of <script> and <style> tags (#20)
- Remove `key` parameter in `replace` method an...
Fix parsing of <script> and <style> tags
github.com/remarkablemark/html-react-parser - 020973e119eb4d09c954f59acc2505fc2ba0f72b authored over 8 years ago by Mark <[email protected]>
- Ensure empty <script> tag is converted to a React element and
not an empty array `[]`
- Add ...
Remove `key` parameter from `replace` and use `React.cloneElement` instead
github.com/remarkablemark/html-react-parser - 7522a0aca4a023f99c4b71564fed725f7c665848 authored over 8 years ago by Mark <[email protected]>Check all variables for usage but do not check function arguments.
github.com/remarkablemark/html-react-parser - 26e4e7c84948a58f851a86fb3bc2abc9d63448aa authored over 8 years ago by Mark <[email protected]>github.com/remarkablemark/html-react-parser - e18cf81238e17ef70c1e9dedbefe181fde7e8f4f authored over 8 years ago by Mark <[email protected]>
The previous implementation was to pass the `key` as the 2nd
parameter in `replace` method and f...
- Fix void element bug (#14)
- Void elements like <img> should not have any children
(even...
Fix void element bug and add `key` parameter to `replace` method
github.com/remarkablemark/html-react-parser - 20177ee68eb088010e013ccf9af723a2a7851b9a authored over 8 years ago by Mark <[email protected]>Add new parameter `key` and update examples.
github.com/remarkablemark/html-react-parser - e3c91acc3a0718a49d442181546fe0baff9645ed authored over 8 years ago by Mark <[email protected]>
The `replace` method now has 2 parameters:
1. domNode - The object describing the DOM node.
2. k...
`render` is an alias for `ReactDOMServer.renderToStaticMarkup`
Update `render` function to chec...
github.com/remarkablemark/html-react-parser - db39cf6922645d0f30a2e2ba656880268b86218f authored over 8 years ago by Mark <[email protected]>
The error came from the fact that `props.children` would always
be at minimum an empty array `[]...
Fix typo and add more badges to README
github.com/remarkablemark/html-react-parser - 15d92abf155ec6ee806a3efe800b45f0a4c36718 authored over 8 years ago by Mark <[email protected]>
Display npm package details:
- https://nodei.co
Display npm version:
- http://shields.io
Displ...
github.com/remarkablemark/html-react-parser - 6cd5ea60d26f9af9b3974accbb1c75a1be6ce79c authored over 8 years ago by Mark <[email protected]>github.com/remarkablemark/html-react-parser - 91f534094834b55d0867448940e759bcadcb2c69 authored over 8 years ago by Mark <[email protected]>
Update README with Travis and Coveralls badges
github.com/remarkablemark/html-react-parser - 23bd9289b95ec96ac0885566e4bb62002ad01895 authored over 8 years ago by Mark <[email protected]>github.com/remarkablemark/html-react-parser - 194b5f6e1cbaa425bf7d7d617260a3c7ea8926e4 authored over 8 years ago by Mark <[email protected]>
Setup Istanbul and Coveralls for coverage reporting
github.com/remarkablemark/html-react-parser - dadbac74d0a9ffb3e0965af95cd8822ceac4ab2b authored over 8 years ago by Mark <[email protected]>github.com/remarkablemark/html-react-parser - d2cb9f1f4bd76b4d0b62a1cf7b0b46cd1ae6ab1d authored over 8 years ago by Mark <[email protected]>
Add directory to:
- .gitignore
- .npmignore
https://coveralls.io
github.com/remarkablemark/html-react-parser - e2a9655c62c985c407683a6ad69ea7122e91a51c authored over 8 years ago by Mark <[email protected]>http://gotwarlost.github.io/istanbul/
https://github.com/gotwarlost/istanbul/issues/44#issuecom...
github.com/remarkablemark/html-react-parser - 886e1d90e82189763687ac68ef71ea173924adb1 authored over 8 years ago by Mark <[email protected]>
- Make package compatible with UMD (Universal Module Definition)
- Fix bug in client parser (reg...
Fix HTML to DOM client parser
github.com/remarkablemark/html-react-parser - becc168a04e0901d548b8428f0611673f3bf8d64 authored over 8 years ago by Mark <[email protected]>
This is to give the user gets feedback if the first argument is
invalid. Also, add tests to conf...
`DOMParser` was nesting certain elements (e.g., div) in `<html>`
and `body` so formatting the ch...
UMD compatibility
github.com/remarkablemark/html-react-parser - 15cc84c333b9e253dd5955c477c855e753c7ea45 authored over 8 years ago by Mark <[email protected]>Also add `.npmignore` file to `.npmignore`
github.com/remarkablemark/html-react-parser - f109b58c564f0bc14e1353c9eeee1f24d2634bd7 authored over 8 years ago by Mark <[email protected]>
Wrap main logic so that it can be loaded by CommonJS (node and
bundlers like webpack), AMD (Requ...
Also, fix the require path for `html-to-dom-client` module in the
entry file `index.js`.
Refactor HTML to DOM modules and environment detection logic
github.com/remarkablemark/html-react-parser - 58e81ccafd62b97b333b6387565eae95a2973e1c authored over 8 years ago by Mark <[email protected]>
Move the client/server environment detection logic to the entry
file.
Rename `lib/html-to-dom.j...
github.com/remarkablemark/html-react-parser - cfeaea538cba724d143d39ef5c4b1603518ee62e authored over 8 years ago by Mark <[email protected]>Fix `peerDependencies` so react >=0.14 is required.
github.com/remarkablemark/html-react-parser - 22a3cc1d3d8f56222c7f820b8a5382c0e3f7df2e authored over 8 years ago by Mark <[email protected]>Add Travis CI
github.com/remarkablemark/html-react-parser - d66db4b458e89fccfb12cccce800197ddc444495 authored over 8 years ago by Mark <[email protected]>
This package only supports `react` greater than or equal to
v0.14 to stay consistent with React ...
Continuous integration tool will run tests and linter and ensure
code confidence.
Also ignore `...
github.com/remarkablemark/html-react-parser - 1572b7c91736e4f737b73ebf0a2d733053f1a646 authored over 8 years ago by Mark <[email protected]>Add ESLint and fix linting errors
github.com/remarkablemark/html-react-parser - 572f1f5d37001ff093bdc7bca37023f0c05dd2e4 authored over 8 years ago by Mark <[email protected]>Also fix a bug in test helpers in which `util` was not required.
github.com/remarkablemark/html-react-parser - d62961ad74783e5acbb1f000636cdeaca6dbd0a7 authored over 8 years ago by Mark <[email protected]>
- Create `.eslintrc` and `.eslintignore`
- Add the above files to `.npmignore`
- Save `eslint` t...
https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package
github.com/remarkablemark/html-react-parser - 9970b64fde0823e1143bc2c2fdd7db69e0f2f0e9 authored over 8 years ago by Mark <[email protected]>github.com/remarkablemark/html-react-parser - 4cd0b298deacb567b71c3fff62636af89b2afa89 authored over 8 years ago by Mark <[email protected]>
github.com/remarkablemark/html-react-parser - dd3f34f3b5a750e7b2c45f362ebb2c0c844d6fa2 authored over 8 years ago by Mark <[email protected]>
github.com/remarkablemark/html-react-parser - 4ce37b0f782be04b7b4931a08779f08b341d1054 authored over 8 years ago by Mark <[email protected]>
github.com/remarkablemark/html-react-parser - 7bcff2a2d4da075740f9264f77e5e1b57814017f authored over 8 years ago by Mark <[email protected]>
github.com/remarkablemark/html-react-parser - d03d5c8b3a126b2412f423450299755aa03f3011 authored over 8 years ago by Mark <[email protected]>
github.com/remarkablemark/html-react-parser - e9bd7f7749678d72c57228788741890fdf492a3a authored over 8 years ago by Mark <[email protected]>
The `browser` field in `package.json` will tell JavaScript
bundlers like browserify and webpack ...
- In node/server, use `htmlparser2` and `domhandler`
- In browser/client, use the DOM API that's...
- Organize Mocha tests to differentiate between environments
(node versus browser)
- Add tests...
Since the objects returned by `htmlparser2.parseDOM` have circular
references, this makes `asser...
The original HTML to DOM helper works in the node environment
and it depends on both `htmlparser...
Update `domToReact` and `htmlToReact` to have a second and optional
argument which is an object ...
github.com/remarkablemark/html-react-parser - 006d5c27c3f289ab266e0b848909397155fcadb4 authored over 8 years ago by Mark <[email protected]>
- Update `domToReact` to skip if node is not "tag" or "text"
- This ensures that HTML comments a...
In the tests, use the parser to convert HTML string to React
elements and then use ReactDOMServe...
github.com/remarkablemark/html-react-parser - a1c8f2dc9ecd6505c012e373c235df93974e1633 authored over 8 years ago by Mark <[email protected]>
In utilities, `invertObject` can now take an optional 2nd parameter
which is an override functio...
- The module will take an HTML string and return a React element
or an array of React elements...
The property config originally only had the HTML DOM property
config. Updated the property confi...
- The helper will no longer throw an error if the object isn't
flat
- Update utilities tests a...
Organize tests with comments and describe blocks.
github.com/remarkablemark/html-react-parser - 8b1c50ead49701e9e46861c2f2d0107b7da478e6 authored over 8 years ago by Mark <[email protected]>github.com/remarkablemark/html-react-parser - 6834026f31229ac894bbbb1b44f40ab3016a3945 authored over 8 years ago by Mark <[email protected]>