Skip to content

Commit

Permalink
fix: display accented characters properly in index (fixes #73)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed May 2, 2022
1 parent d34b104 commit 8d9c402
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 38 deletions.
2 changes: 1 addition & 1 deletion lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const normalizePath = require('normalize-path');
const marked = require('marked');
const {highlight} = require('highlight.js');
const removeMd = require('remove-markdown');
const humanize = require('string-humanize');
const humanize = require('humanize-string');

const SEARCH_EXTRACT_LENGTH = 400;
const SEARCH_RESULTS_MAX = 10;
Expand Down
94 changes: 59 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"fs-extra": "^10.0.0",
"globby": "^11.0.0",
"highlight.js": "^11.2.0",
"humanize-string": "^2.1.0",
"lodash": "^4.17.15",
"marked": "^3.0.3",
"mermaid": "^9.0.1",
Expand All @@ -63,9 +64,8 @@
"open": "^8.2.1",
"pug": "^3.0.0",
"recursive-readdir": "^2.2.2",
"remove-markdown": "^0.3.0",
"remove-markdown": "^0.5.0",
"shortid": "^2.2.15",
"string-humanize": "^1.0.1",
"yargs": "^17.1.1"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions test/nom_accentué.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Test en Français

Pour le support des caractères accentués

0 comments on commit 8d9c402

Please sign in to comment.