diff --git a/README.md b/README.md index d010dd8..4176496 100644 --- a/README.md +++ b/README.md @@ -23,14 +23,14 @@ Jektex supports both the built-in Kramdown math notation, and the newer LaTeX-on ### Kramdown notation **Inline formula** -Put formula between two pairs of dolar signs (`$$`) inside of paragraph. +Put formula between two pairs of dollar signs (`$$`) inside of paragraph. ```latex Lorem ipsum dolor sit amet, consectetur $$e^{i\theta}=\cos(\theta)+i\sin(\theta)$$ adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ``` **Display formula** -Put formula between two pairs of dolar sings (`$$`) and surround it with two empty lines. +Put formula between two pairs of dollar signs (`$$`) and surround it with two empty lines. ```latex Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. diff --git a/lib/jektex/jektex.rb b/lib/jektex/jektex.rb index 3ba6d88..b306323 100644 --- a/lib/jektex/jektex.rb +++ b/lib/jektex/jektex.rb @@ -85,7 +85,7 @@ def escape_method(type, expression, doc_path) # use it if it exists if($cache.has_key?(expression_hash) && !contains_updated_global_macro?(expression)) - # check if expressin conains updated macro + # check if expression contains updated macro $count_newly_generated_expressions += 1 print_stats unless $silent return $cache[expression_hash] @@ -166,7 +166,7 @@ def escape_method(type, expression, doc_path) end end - # check is silent mode is activated + # check if silent mode is activated $silent = config["silent"] if config.has_key?("silent") # make list of updated macros $updated_global_macros = get_list_of_updated_global_macros($global_macros, $cache["cached_global_macros"]) @@ -197,7 +197,7 @@ def escape_method(type, expression, doc_path) end Jekyll::Hooks.register :site, :post_write do - # print stats once more to prevent them from being overwriten by error log + # print stats once more to prevent them from being overwritten by error log print_stats unless $silent # print new line to prevent overwriting previous output print "\n" unless $silent