From b4caa73f8720139c758079b406b731784a9bdf04 Mon Sep 17 00:00:00 2001 From: Guspan Tanadi <36249910+guspan-tanadi@users.noreply.github.com> Date: Thu, 21 Sep 2023 13:13:54 +0700 Subject: [PATCH 1/2] docs: bit misspell in comments --- lib/jektex/jektex.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From fbc9e8da5115bfb0e992147eaea8dc765a049c82 Mon Sep 17 00:00:00 2001 From: Guspan Tanadi <36249910+guspan-tanadi@users.noreply.github.com> Date: Thu, 21 Sep 2023 13:20:15 +0700 Subject: [PATCH 2/2] docs: bit misspell in README see Kramdown notation section. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.