mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04:00
fixed title extraction to exclude latex code, but include rendered latex (#946)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
3db6bcf892
commit
9330adf564
2 changed files with 17 additions and 2 deletions
|
@ -95,11 +95,21 @@ describe('Document Title', () => {
|
|||
})
|
||||
|
||||
it('markdown syntax removed third', () => {
|
||||
cy.get('a')
|
||||
.get('@codeinput')
|
||||
cy.get('@codeinput')
|
||||
.fill(`# ${title} _asd_`)
|
||||
cy.title()
|
||||
.should('eq', `${title} asd - HedgeDoc @ ${branding.name}`)
|
||||
})
|
||||
|
||||
it('katex code looks right', () => {
|
||||
cy.get('@codeinput')
|
||||
.fill(`# $\\alpha$-foo`)
|
||||
cy.get('.markdown-body > h1')
|
||||
.should('contain', 'α')
|
||||
cy.get('@codeinput')
|
||||
.type('\n\ntest\n')
|
||||
cy.title()
|
||||
.should('eq', `α-foo - HedgeDoc @ ${branding.name}`)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue