Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Google Chart API by CodeCogs #3142

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions MANUAL.txt
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ Math rendering in HTML

: Render TeX formulas using an external script that converts TeX
formulas to images. The formula will be concatenated with the URL
provided. If *URL* is not specified, the Google Chart API will be used.
provided. If *URL* is not specified, the CodeCogs will be used.
Note: the `--webtex` option will affect Markdown output
as well as HTML.

Expand Down Expand Up @@ -2715,7 +2715,7 @@ Docx

FictionBook2
~ If the `--webtex` option is used, formulas are rendered as images
using Google Charts or other compatible web service, downloaded
using CodeCogss or other compatible web service, downloaded
and embedded in the e-book. Otherwise, they will appear verbatim.

HTML, Slidy, DZSlides, S5, EPUB
Expand Down Expand Up @@ -2758,8 +2758,8 @@ HTML, Slidy, DZSlides, S5, EPUB
6. If the `--webtex` option is used, TeX formulas will be converted
to `<img>` tags that link to an external script that converts
formulas to images. The formula will be URL-encoded and concatenated
with the URL provided. If no URL is specified, the Google Chart
API will be used (`http://chart.apis.google.com/chart?cht=tx&chl=`).
with the URL provided. If no URL is specified, the CodeCogs
will be used (`https://latex.codecogs.com/png.latex?`).

7. If the `--mathjax` option is used, TeX math will be displayed
between `\(...\)` (for inline math) or `\[...\]` (for display
Expand Down
8 changes: 4 additions & 4 deletions man/pandoc.1
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ If \f[I]URL\f[] is not specified, it is assumed that the script is at
Render TeX formulas using an external script that converts TeX formulas
to images.
The formula will be concatenated with the URL provided.
If \f[I]URL\f[] is not specified, the Google Chart API will be used.
If \f[I]URL\f[] is not specified, the CodeCogs will be used.
Note: the \f[C]\-\-webtex\f[] option will affect Markdown output as well
as HTML.
.RS
Expand Down Expand Up @@ -3376,7 +3376,7 @@ It will be rendered using OMML math markup.
.TP
.B FictionBook2
If the \f[C]\-\-webtex\f[] option is used, formulas are rendered as
images using Google Charts or other compatible web service, downloaded
images using CodeCogs or other compatible web service, downloaded
and embedded in the e\-book.
Otherwise, they will appear verbatim.
.RS
Expand Down Expand Up @@ -3433,8 +3433,8 @@ If the \f[C]\-\-webtex\f[] option is used, TeX formulas will be
converted to \f[C]<img>\f[] tags that link to an external script that
converts formulas to images.
The formula will be URL\-encoded and concatenated with the URL provided.
If no URL is specified, the Google Chart API will be used
(\f[C]http://chart.apis.google.com/chart?cht=tx&chl=\f[]).
If no URL is specified, the CodeCogs will be used
(\f[C]https://latex.codecogs.com/png.latex?\f[]).
.IP "7." 3
If the \f[C]\-\-mathjax\f[] option is used, TeX math will be displayed
between \f[C]\\(...\\)\f[] (for inline math) or \f[C]\\[...\\]\f[] (for
Expand Down
2 changes: 1 addition & 1 deletion pandoc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ options =
, Option "" ["webtex"]
(OptArg
(\arg opt -> do
let url' = fromMaybe "http://chart.apis.google.com/chart?cht=tx&chl=" arg
let url' = fromMaybe "https://latex.codecogs.com/png.latex?" arg
return opt { optHTMLMathMethod = WebTeX url' })
"URL")
"" -- "Use web service for HTML math"
Expand Down