humhub / humhub-prosemirror

Other
17 stars 8 forks source link

Header anchors lost #113

Closed yurabakhtin closed 1 year ago

yurabakhtin commented 1 year ago

Problem from here https://github.com/humhub/wiki-2.0-issues/issues/49#issuecomment-1630820696:


How it is broken now:

develop-missed-anchor


Expected result on render header:

master-anchor

serh-mosk commented 1 year ago

@luke- Can you explain what exactly had to be entered before so that a similar title with an anchor appeared?

luke- commented 1 year ago

@yurabakhtin Can you please help here?

yurabakhtin commented 1 year ago

@yuriimaz

test-header-anchors

serh-mosk commented 1 year ago

@luke- @yurabakhtin I still don't understand. What exactly should be entered in the editor so that after saving we get the expected look of the title with an anchor?

serh-mosk commented 1 year ago

@yurabakhtin Is just the text enough to make the header?

luke- commented 1 year ago

@luke- @yurabakhtin I still don't understand. What exactly should be entered in the editor so that after saving we get the expected look of the title with an anchor?

Try to create some "headline 1" elements.

yurabakhtin commented 1 year ago

@yuriimaz

I still don't understand. What exactly should be entered in the editor so that after saving we get the expected look of the title with an anchor?

headers

Just try to create a Wiki page with some random text then apply "Heading 1" or "Heading 2" to the text, so an expected result is that text should be rendered as <h1 id="header-text">Header text<a href="#header-text">...</a></h1> but wrong result is <h1>Header text</h1>, please find more details on my screenshots and in the investigation above, or please ask me more details if you cannot reproduce the bug on the develop v1.15.0(don't forget to refresh by composer install when you switch between branches master and develop).

serh-mosk commented 1 year ago

@yurabakhtin @luke- Thanks. I can already see it, I'm trying to fix it.

luke- commented 1 year ago

Related: https://github.com/humhub/humhub-prosemirror/issues/115