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

Essayer de créer un POC de https://prosemirror.net/examples/markdown/ en Svelte(kit) #283

Closed
stephane-klein opened this issue Aug 2, 2023 · 13 comments
Labels

Comments

@stephane-klein
Copy link
Owner

stephane-klein commented Aug 2, 2023

Essayer de créer un POC de https://prosemirror.net/examples/markdown/ en Svelte(kit).

Le but dans ce POC, ne pas utiliser https://tiptap.dev/, j'essaie se rester en "raw prosemirror", sans utiliser de "surcouche".

@stephane-klein
Copy link
Owner Author

Nom du repository : poc-svelte-prosemirror-markdown.

@stephane-klein
Copy link
Owner Author

Publié ici https://github.com/stephane-klein/poc-svelte-prosemirror-markdown

Prochaine étape :

  • Fixer le problème de sauts de lignes au niveau des items de l'export markdown

@stephane-klein
Copy link
Owner Author

Fixer le problème de sauts de lignes au niveau des items de l'export markdown

Semble être ce bug : https://github.com/ProseMirror/prosemirror-markdown/issues/51.

@stephane-klein
Copy link
Owner Author

J'essaie d'inclure directement le code source de prosemirror-markdown dans le projet, afin de pouvoir changer la configuration de ceci.

Précision : je semble rencontrer des difficultés quand j'essaie d'implémenter prosemirror-markdown en Javascript. Pour fixer ce projet, je garde l'implémentation en TypeScript.

@stephane-klein
Copy link
Owner Author

Pour le moment, j'ai l'erreur suivante dans la branche import-prosemirorr-markdown-fork-in-project :

SyntaxError: ambiguous import: ParseSpec

@stephane-klein
Copy link
Owner Author

Pour le moment, j'ai l'erreur suivante dans la branche import-prosemirorr-markdown-fork-in-project :

SyntaxError: ambiguous import: ParseSpec

Corrigé par stephane-klein/poc-svelte-prosemirror-markdown@104b084

@stephane-klein
Copy link
Owner Author

Je suis assez content du résultat 🙂.

Prochaine étape :

  • Implémenter 3 "views" :
    • Éditeur riche
    • Éditeur markdown
    • Preview

@stephane-klein
Copy link
Owner Author

stephane-klein commented Aug 3, 2023

Je viens de poster cette issue "What is the recommended method to update the src/schema.ts configuration in a project?" (https://github.com/ProseMirror/prosemirror-markdown/issues/108).

@stephane-klein
Copy link
Owner Author

J'ai implémenté 2 views sur les 3, prochaine étape, ajouter un <textarea pour le markdown.

Ensuite, refactorer le textarea vers un codemirror.

@stephane-klein
Copy link
Owner Author

J'ai implémenté 2 views sur les 3, prochaine étape, ajouter un <textarea pour le markdown.

C'est fait et cela fonctionne.

@stephane-klein
Copy link
Owner Author

Voila le résultat https://youtu.be/IwrV7U5kDhU

Je suis plutôt satisfait : https://github.com/stephane-klein/poc-svelte-prosemirror-markdown

@stephane-klein
Copy link
Owner Author

Je viens de poster cette issue "What is the recommended method to update the src/schema.ts configuration in a project?" (https://github.com/ProseMirror/prosemirror-markdown/issues/108).

Pour le moment, je n'ai pas réussi à implémenter la méthode indiquée dans ProseMirror/prosemirror-markdown#108

J'essaierai cela plus tard.

@stephane-klein
Copy link
Owner Author

J'ai passé 6h25 sur ce POC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant