Closed woodenbell closed 3 years ago
Hi @woodenbell
Thanks for your issue firstly. And currently the issue has been addressed.
The minimal test project Gemfile as below:
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 4.1.1"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
end
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
gem "jekyll-spaceship", "0.9.6"
The issue could be summarized as below:
$$..$$
mathjax expression and no any other content (Normal):$$ 2 - 1 = 1 $$
$$ 2 - 1 = 1 $$
$$ 2 - 1 = 1 $$
$$..$$
mathjax expression and any other content (Abnormal):$$ 2 - 1 = 1 $$
Here is pure text.
$$ 2 - 1 = 1 $$
<!-- Here is pure text. -->
$$ 2 - 1 = 1 $$
$$ 3 - 1 = 2 $$
<!-- Here is pure text. -->
$$..$$
and any other patterns ($..$
, \\\[...\\\]
, etc.) of mathjax expressions (Normal):\\\( 2 - 1 = 1 \\\)
$$ 2 - 1 = 1 $$
\\\[2 - 1 = 1\\\]
$$ 2 - 1 = 1 $$
\\\[2 - 1 = 1\\\]
$$ 2 - 1 = 1 $$
Here is pure text.
Thanks and regards
Hi @woodenbell
Now the issue has been fixed, and could you update it for your test?
For using gem directly from git repositories. In your Gemfile
:
# To install a gem from its github repository
gem "jekyll-spaceship", git: "https://github.com/jeffreytse/jekyll-spaceship.git"
And then install gems again:
$ bundle install
Thanks and regards
Hi @jeffreytse
The issue has been fixed. Thanks a lot!
As the title says, when running the server with the latest version of the plugin (
0.9.6
) with default configs (optimize
hasenable: true
formathjax
), the MathJax processor is only called on files which have either only mathjax display notation (text between pairs of$$
) and no text or have the inline notation (pairs of$
).When using
$$
and regular text or without$
in that same post, nothing happens.Below are some screenshots of examples. Setting
enable: false
in theoptimize
config for MathJax seems to solve the issue.The repository is available here.