turndown 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/turndown.js CHANGED
@@ -368,6 +368,33 @@ function filterValue (rule, node, options) {
368
368
  }
369
369
  }
370
370
 
371
+ /**
372
+ * The collapseWhitespace function is adapted from collapse-whitespace
373
+ * by Luc Thevenard.
374
+ *
375
+ * The MIT License (MIT)
376
+ *
377
+ * Copyright (c) 2014 Luc Thevenard <lucthevenard@gmail.com>
378
+ *
379
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
380
+ * of this software and associated documentation files (the "Software"), to deal
381
+ * in the Software without restriction, including without limitation the rights
382
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
383
+ * copies of the Software, and to permit persons to whom the Software is
384
+ * furnished to do so, subject to the following conditions:
385
+ *
386
+ * The above copyright notice and this permission notice shall be included in
387
+ * all copies or substantial portions of the Software.
388
+ *
389
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
390
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
391
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
392
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
393
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
394
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
395
+ * THE SOFTWARE.
396
+ */
397
+
371
398
  /**
372
399
  * collapseWhitespace(options) removes extraneous whitespace from an the given element.
373
400
  *
@@ -367,6 +367,33 @@ function filterValue (rule, node, options) {
367
367
  }
368
368
  }
369
369
 
370
+ /**
371
+ * The collapseWhitespace function is adapted from collapse-whitespace
372
+ * by Luc Thevenard.
373
+ *
374
+ * The MIT License (MIT)
375
+ *
376
+ * Copyright (c) 2014 Luc Thevenard <lucthevenard@gmail.com>
377
+ *
378
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
379
+ * of this software and associated documentation files (the "Software"), to deal
380
+ * in the Software without restriction, including without limitation the rights
381
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
382
+ * copies of the Software, and to permit persons to whom the Software is
383
+ * furnished to do so, subject to the following conditions:
384
+ *
385
+ * The above copyright notice and this permission notice shall be included in
386
+ * all copies or substantial portions of the Software.
387
+ *
388
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
389
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
390
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
391
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
392
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
393
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
394
+ * THE SOFTWARE.
395
+ */
396
+
370
397
  /**
371
398
  * collapseWhitespace(options) removes extraneous whitespace from an the given element.
372
399
  *
@@ -365,6 +365,33 @@ function filterValue (rule, node, options) {
365
365
  }
366
366
  }
367
367
 
368
+ /**
369
+ * The collapseWhitespace function is adapted from collapse-whitespace
370
+ * by Luc Thevenard.
371
+ *
372
+ * The MIT License (MIT)
373
+ *
374
+ * Copyright (c) 2014 Luc Thevenard <lucthevenard@gmail.com>
375
+ *
376
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
377
+ * of this software and associated documentation files (the "Software"), to deal
378
+ * in the Software without restriction, including without limitation the rights
379
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
380
+ * copies of the Software, and to permit persons to whom the Software is
381
+ * furnished to do so, subject to the following conditions:
382
+ *
383
+ * The above copyright notice and this permission notice shall be included in
384
+ * all copies or substantial portions of the Software.
385
+ *
386
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
387
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
388
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
389
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
390
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
391
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
392
+ * THE SOFTWARE.
393
+ */
394
+
368
395
  /**
369
396
  * collapseWhitespace(options) removes extraneous whitespace from an the given element.
370
397
  *
@@ -371,6 +371,33 @@ function filterValue (rule, node, options) {
371
371
  }
372
372
  }
373
373
 
374
+ /**
375
+ * The collapseWhitespace function is adapted from collapse-whitespace
376
+ * by Luc Thevenard.
377
+ *
378
+ * The MIT License (MIT)
379
+ *
380
+ * Copyright (c) 2014 Luc Thevenard <lucthevenard@gmail.com>
381
+ *
382
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
383
+ * of this software and associated documentation files (the "Software"), to deal
384
+ * in the Software without restriction, including without limitation the rights
385
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
386
+ * copies of the Software, and to permit persons to whom the Software is
387
+ * furnished to do so, subject to the following conditions:
388
+ *
389
+ * The above copyright notice and this permission notice shall be included in
390
+ * all copies or substantial portions of the Software.
391
+ *
392
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
393
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
394
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
395
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
396
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
397
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
398
+ * THE SOFTWARE.
399
+ */
400
+
374
401
  /**
375
402
  * collapseWhitespace(options) removes extraneous whitespace from an the given element.
376
403
  *
@@ -367,6 +367,33 @@ function filterValue (rule, node, options) {
367
367
  }
368
368
  }
369
369
 
370
+ /**
371
+ * The collapseWhitespace function is adapted from collapse-whitespace
372
+ * by Luc Thevenard.
373
+ *
374
+ * The MIT License (MIT)
375
+ *
376
+ * Copyright (c) 2014 Luc Thevenard <lucthevenard@gmail.com>
377
+ *
378
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
379
+ * of this software and associated documentation files (the "Software"), to deal
380
+ * in the Software without restriction, including without limitation the rights
381
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
382
+ * copies of the Software, and to permit persons to whom the Software is
383
+ * furnished to do so, subject to the following conditions:
384
+ *
385
+ * The above copyright notice and this permission notice shall be included in
386
+ * all copies or substantial portions of the Software.
387
+ *
388
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
389
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
390
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
391
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
392
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
393
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
394
+ * THE SOFTWARE.
395
+ */
396
+
370
397
  /**
371
398
  * collapseWhitespace(options) removes extraneous whitespace from an the given element.
372
399
  *
@@ -365,6 +365,33 @@ function filterValue (rule, node, options) {
365
365
  }
366
366
  }
367
367
 
368
+ /**
369
+ * The collapseWhitespace function is adapted from collapse-whitespace
370
+ * by Luc Thevenard.
371
+ *
372
+ * The MIT License (MIT)
373
+ *
374
+ * Copyright (c) 2014 Luc Thevenard <lucthevenard@gmail.com>
375
+ *
376
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
377
+ * of this software and associated documentation files (the "Software"), to deal
378
+ * in the Software without restriction, including without limitation the rights
379
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
380
+ * copies of the Software, and to permit persons to whom the Software is
381
+ * furnished to do so, subject to the following conditions:
382
+ *
383
+ * The above copyright notice and this permission notice shall be included in
384
+ * all copies or substantial portions of the Software.
385
+ *
386
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
387
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
388
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
389
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
390
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
391
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
392
+ * THE SOFTWARE.
393
+ */
394
+
368
395
  /**
369
396
  * collapseWhitespace(options) removes extraneous whitespace from an the given element.
370
397
  *
@@ -371,6 +371,33 @@ function filterValue (rule, node, options) {
371
371
  }
372
372
  }
373
373
 
374
+ /**
375
+ * The collapseWhitespace function is adapted from collapse-whitespace
376
+ * by Luc Thevenard.
377
+ *
378
+ * The MIT License (MIT)
379
+ *
380
+ * Copyright (c) 2014 Luc Thevenard <lucthevenard@gmail.com>
381
+ *
382
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
383
+ * of this software and associated documentation files (the "Software"), to deal
384
+ * in the Software without restriction, including without limitation the rights
385
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
386
+ * copies of the Software, and to permit persons to whom the Software is
387
+ * furnished to do so, subject to the following conditions:
388
+ *
389
+ * The above copyright notice and this permission notice shall be included in
390
+ * all copies or substantial portions of the Software.
391
+ *
392
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
393
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
394
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
395
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
396
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
397
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
398
+ * THE SOFTWARE.
399
+ */
400
+
374
401
  /**
375
402
  * collapseWhitespace(options) removes extraneous whitespace from an the given element.
376
403
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "turndown",
3
3
  "description": "A library that converts HTML to Markdown",
4
- "version": "4.0.0",
4
+ "version": "4.0.1",
5
5
  "author": "Dom Christie",
6
6
  "main": "lib/turndown.cjs.js",
7
7
  "module": "lib/turndown.es.js",
@@ -10,7 +10,6 @@
10
10
  "jsdom": false
11
11
  },
12
12
  "dependencies": {
13
- "collapse-whitespace": "domchristie/collapse-whitespace#turndown",
14
13
  "jsdom": "^11.3.0"
15
14
  },
16
15
  "devDependencies": {