Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

228
Vistas
Problem rendering inline tex with draftjs-latex-plugin

I am using draft-js-latex-plugin package to implement Tex in my Draft-JS editor. The documentation of the package says the following:

Press $ for starting Inline TeX Press CMD + M for starting Tex Block To write the $ character, type $

Now when I press $, an empty space comes in instead of inline-Tex (sometimes it occurs sometimes not, randomly).

Problem is to change that empty space to inline-tex component.

Here is how I implemented the plugin (avoided the rest of the code):

...
import { getLaTeXPlugin } from "draft-js-latex-plugin";
import "draft-js-latex-plugin/lib/styles.css";
import "katex/dist/katex.min.css";

const DraftEditor = props => {
   ...
   const LaTeXPlugin = getLaTeXPlugin();
   const plugins = [LaTeXPlugin];
   return <Editor
          customStyleMap={highlightStyleMap}
          ref={editorRef}
          handleKeyCommand={handleKeyCommand}
          editorState={editorState}
          onChange={changeHandler}
          plugins={plugins}
        />
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda