Closed mortmoe closed 2 months ago
I'll do my best and try to fix this tomorrow. I'm a bit of a noob when it comes to working with GitHub, kind of my first time doing something like this 🤣 Googling like a maniac on how to get this tested locally, use Forks and all that 🤣 Fun to learn new stuff and probably long overdue anyway so I'll figure it out 👍
I think I've got it now. As I said, kind of new to this... I've tried several methods for using and testing this in my application:
npm run build && husky install
However, this fails on my projects gitlab ... wrong node version, so I need to wait util the right guy returns from vacation before I can fix that and publish a working version for my test-users. I'm probably missing something obvious in 1. and 2. right? :)
Anyway, I've tested the changes using method 3 and removed the build stuff now :)
Thanks for cleaning up the commits and working through this! I'll make a couple tiny tweaks to the comments and variable definitions and merge this soon! 😄
In terms of testing out your change, I would recommend just testing with pnpm dev
(see https://github.com/sjdemartini/mui-tiptap/blob/main/CONTRIBUTING.md#development-setup) and changing useExtensions
to use HeadingWithAnchor.configure({ levels: [2,3,4] })
or whatever headings you like here https://github.com/sjdemartini/mui-tiptap/blob/61d3f7a3dccea6b7c676fdae0b15176746beb390/src/demo/useExtensions.ts#L154.
If you want to test within your own project (which shouldn't be necessary for this specific bug fix, but maybe useful otherwise), I've found https://github.com/wclr/yalc to be a convenient option.
Cool. Thanks for this, and thanks for the tips :) I did some testing with dev actually, just wanted to get it working locally to find a way to do it for other cases later on. I'll look into yalc next time :)
Suggested fix for #228