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

[EN COURS] add live editor mdx preview ref to #68 #12

Closed
wants to merge 3 commits into from

Conversation

PierreCrb
Copy link
Contributor

https://github.com/premieroctet/formations/issues/68

Enregistrement.de.l.ecran.2022-08-29.a.18.08.25.mov

TODO :

  • : Afficher les modifications en tant réel dans la preview
  • : Lorsque l'on change une lettre il y a un rafraichissement => à fix

@PierreCrb PierreCrb self-assigned this Aug 29, 2022
@PierreCrb
Copy link
Contributor Author

PierreCrb commented Sep 2, 2022

Bug déjà fix :

  • Bug présent avec tout les composants chakraui présent dans les MDX fix avec :

kentcdodds/mdx-bundler#113 (comment)
kentcdodds/mdx-bundler#87 (comment)

  • fix les bug esbuild :

https://github.com/Arcath/arcath.net-next/blob/main/next.config.js#L11-L22

  • fix l'import des images dans les mdx grâce à ce bout de code dans le bundleMDX :
 esbuildOptions: (options) => {
      options.loader = {
        ...options.loader,
        ".png": "dataurl",
        ".jpg": "dataurl",
        ".gif": "dataurl",
      };
      return options;
    },

Bug présent :

Il me reste encore ce dernier bug :

Screenshot at Sep 02 16-09-55

Je n'ai pas réussi à le fix, je n'ai trouvé aucune info dans la doc et c'est compliqué à debug, je vais regarder pour enregistrer les mdx en bdd directement je laisse cette PR ouverte.

@tlenclos tlenclos closed this Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants