Skip to content

Commit

Permalink
Add line numbers for misspelled words
Browse files Browse the repository at this point in the history
Co-authored-by: David Nicholson <[email protected]>
  • Loading branch information
agitter and danich1 committed Apr 27, 2020
1 parent 975fb61 commit 14215d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fi
# Spellcheck
if [ "${SPELLCHECK:-}" = "true" ]; then
export ASPELL_CONF="add-extra-dicts $(pwd)/build/assets/custom-dictionary.txt; ignore-case true"
pandoc --lua-filter spellcheck.lua output/manuscript.md | sort | uniq > output/spelling-errors.txt
pandoc --lua-filter spellcheck.lua output/manuscript.md | uniq | while read word; do grep -on "\<$word\>" output/manuscript.md; done | sort -h > output/spelling-errors.txt
cat output/spelling-errors.txt
fi

Expand Down

0 comments on commit 14215d3

Please sign in to comment.