ep_readability
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "ep_readability", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Calculates the Flesch readability index in Etherpad, client based.", | ||
@@ -18,7 +18,3 @@ "author": { | ||
"etherpad" | ||
], | ||
"readme": "# 1 Click to calculate the FLESCH readability factor\r\nThere'll be a button. Push it.\r\n\r\nColours indicate the readability. \r\n\r\nNumeric values detail the readability:\r\n\r\na) Negative numbers or around \"0\" indicate texts which are very difficult to read.\r\n\r\nb) Numbers around \"100\" indicate very easy texts.\r\n\r\n# Install\r\n\r\nOn the command line, run `npm install ep_readability`.\r\n\r\nAlternatively, browse to `http://yourEtherpadliteInstan.ce/admin/plugins`, search for `ep_readability` and click install.\r\n\r\nAfter restarting the server, the plugin takes effect.\r\n\r\n# License\r\nMIT", | ||
"readmeFilename": "README.md", | ||
"_id": "ep_readability@0.0.7", | ||
"_from": "ep_readability@" | ||
] | ||
} |
@@ -13,7 +13,7 @@ // ---------------------------------------------------------------------------- | ||
// all these tags should be preceeded by a full stop. | ||
var fullStopTags = ['li', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'dd']; | ||
/*var fullStopTags = ['li', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'dd']; | ||
fullStopTags.forEach(function(tag) { | ||
text = text.replace("</" + tag + ">",'.'); | ||
}) | ||
text = text.replace("<"+tag+"[^<]>\.+</" + tag + ">",'.'); | ||
})*/ | ||
// 1. Remove HTML entities @TODO add more entities | ||
@@ -25,3 +25,3 @@ // 2. Remove Etherpad spans | ||
text = text.replace(/<div[^>]*>([^<]+[^:,!?.-])<\/div>/gm, "$1."); | ||
// This is not Etherpad specific: | ||
@@ -28,0 +28,0 @@ // @TODO Add URL matcher |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23187