Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/embed-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ If you embed the file as `iframe`, `audio` and `video`, then you may need to set
```

```markdown
[cinwell website](https://cinwell.com ':include :type=iframe width=100% height=400px')
[cinwell website](https://google.com ':include :type=iframe width=100% height=400px')
```

[cinwell website](https://cinwell.com ':include :type=iframe width=100% height=400px')
[cinwell website](https://google.com ':include :type=iframe width=100% height=400px')

Did you see it? You only need to write directly. You can check [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe) for these attributes.

Expand Down
7 changes: 4 additions & 3 deletions src/core/event/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,11 @@ export function Events(Base) {
.find(`.sidebar a[href='${currentPath}']`)
?.getAttribute('title');

const currentTitle = name
const plainName = name ? name.replace(/<[^>]+>/g, '').trim() : name;
const currentTitle = plainName
? currentSection
? `${currentSection} - ${name}`
: name
? `${currentSection} - ${plainName}`
: plainName
: currentSection;

// Update page title
Expand Down
Loading