diff --git a/docs/embed-files.md b/docs/embed-files.md index e9241c478..890edd843 100644 --- a/docs/embed-files.md +++ b/docs/embed-files.md @@ -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. diff --git a/src/core/event/index.js b/src/core/event/index.js index f92c38e5b..1fd7abce9 100644 --- a/src/core/event/index.js +++ b/src/core/event/index.js @@ -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