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

gatsby-remark-katex doesn't work #6648

Closed
grokkingStuff opened this issue Jul 21, 2018 · 7 comments
Closed

gatsby-remark-katex doesn't work #6648

grokkingStuff opened this issue Jul 21, 2018 · 7 comments
Labels
stale? Issue that may be closed soon due to the original author not responding any more. status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@grokkingStuff
Copy link

Description

Unable to produce latex output from md files

Steps to reproduce

Follow the instructions at https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-katex

Expected result

latex output should appear as an svg or similar

What should happen?

Actual result

the latex text is treated as plain text

What happened.

Environment

System:
OS: Linux 4.17 openSUSE Tumbleweed 20180704
CPU: x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
Shell: 4.4.23 - /bin/bash
Binaries:
Node: 10.6.0 - /usr/bin/node
Yarn: 1.7.0 - /usr/bin/yarn
npm: 6.1.0 - /usr/bin/npm
Browsers:
Chrome: 67.0.3396.99
Firefox: 61.0
npmPackages:
gatsby: ^1.9.24 => 1.9.274
gatsby-link: ^1.6.16 => 1.6.46
gatsby-plugin-google-analytics: ^1.0.7 => 1.0.31
gatsby-plugin-manifest: ^1.0.7 => 1.0.27
gatsby-plugin-offline: ^1.0.9 => 1.0.18
gatsby-plugin-react-helmet: ^1.0.6 => 1.0.8
gatsby-plugin-sharp: ^1.6.7 => 1.6.48
gatsby-plugin-sitemap: ^1.2.5 => 1.2.25
gatsby-plugin-styled-components: ^1.0.5 => 1.0.5
gatsby-remark-copy-linked-files: ^1.5.7 => 1.5.37
gatsby-remark-images: ^1.5.11 => 1.5.67
gatsby-remark-katex: ^1.0.14 => 1.0.14
gatsby-remark-prismjs: ^1.2.7 => 1.2.24
gatsby-remark-responsive-iframe: ^1.4.7 => 1.4.20
gatsby-remark-smartypants: ^1.4.7 => 1.4.12
gatsby-source-filesystem: ^1.4.12 => 1.5.39
gatsby-transformer-remark: ^1.7.44 => 1.7.44
gatsby-transformer-sharp: ^1.6.5 => 1.6.27
npmGlobalPackages:
gatsby-cli: 1.1.58

File contents (if changed)

gatsby-config.js: N/A
package.json: N/A
gatsby-node.js: N/A
gatsby-browser.js: N/A
gatsby-ssr.js: N/A

@grokkingStuff
Copy link
Author

Not sure why it doesn't work - i've followed the steps and the md files are properly formatted.

I've been using TeX for 5 years now and heavily depend on it. Hope I can use LaTeX with Gatsby.

@KyleAMathews
Copy link
Contributor

Seems to be working here https://using-remark.gatsbyjs.org/katex/ perhaps check out the example site to see if you're missing something?

@m-allanson m-allanson added the type: question or discussion Issue discussing or asking a question about Gatsby label Jul 24, 2018
@calcsam calcsam added the status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. label Aug 11, 2018
@gatsbot
Copy link

gatsbot bot commented Dec 20, 2018

Old issues will be closed after 30 days of inactivity. This issue has been quiet for 20 days and is being marked as stale. Reply here or add the label "not stale" to keep this issue open!

@gatsbot gatsbot bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Dec 20, 2018
@gatsbot
Copy link

gatsbot bot commented Dec 31, 2018

This issue is being closed due to inactivity. Is this a mistake? Please re-open this issue or create a new issue.

@gatsbot gatsbot bot closed this as completed Dec 31, 2018
@Jiang-Li
Copy link

I followed the instructions of gatsby-remark-katex but unable to see the latex formula. Did anyone observe this recently?

  • gatsby-remark-katex@3.1.2
  • katex@0.10.2
  • gatsby-transformer-remark@2.6.9

@miguelgondu
Copy link

On my end I get a weird behavior, everything between dollar signs dissapears, but it isn't rendered as TeX.

@wzard
Copy link
Contributor

wzard commented Jul 31, 2019

I ran into the same issue. Try this config instead. @miguelgondu @Jiang-Li

	{
			resolve: `gatsby-plugin-mdx`,
			options: {
				defaultLayouts: {
					default: require.resolve(`./src/components/mdxLayout.js`)
				}
				remarkPlugins: [ require('remark-math'), require('remark-html-katex') ]
			}
		}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale? Issue that may be closed soon due to the original author not responding any more. status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

7 participants