Permalink
Browse files

Finds all instances of inline code, not just first in a string.

  • Loading branch information...
1 parent e251384 commit 9fdadfef78b55541e3348dc9c708434b37ccbd17 @ehmatthes committed Apr 27, 2015
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/highlight_inline_code.sh
@@ -11,9 +11,9 @@ new_string='<code class="inline_code">'
if [ -e "../notebooks/" ]
then
- find ../notebooks -iname '*.html' | xargs sed -i "s/$old_string/$new_string/"
+ find ../notebooks -iname '*.html' | xargs sed -i "s/$old_string/$new_string/g"
else
- find notebooks -iname '*.html' | xargs sed -i "s/$old_string/$new_string/"
+ find notebooks -iname '*.html' | xargs sed -i "s/$old_string/$new_string/g"
fi

0 comments on commit 9fdadfe

Please sign in to comment.