Comments (1)
One solution, for example, would be to use cheerio
and do something like:
const $ = cheerio.load(buildHtml);
$('title').text(pageTitle);
...
return $.html();
from yari.
Related Issues (20)
- running step "yarn install" for yari on windows 10 HOT 3
- The example on this page doesn't work HOT 3
- CSS Sidebar: many functions are not listed
- Playground: Seeing double scrollbars in code editors HOT 4
- Playground: 'Reset' button empties the editors
- Curriculum cards are not clickable HOT 1
- yari's toolbar does not exist "Open in your editor" , "View on MDN", "Edith on Github" HOT 1
- Examples on page flicker white in Safari 17 HOT 5
- Live samples don't work in archive.org any more
- [Feat]: Improve UI of Playground HOT 1
- Using `<hr>` tag as a border inside of `ul` HOT 1
- Page not found with fallback notecard doesn't present language switcher
- 🐛 form submission invalid in playground HOT 5
- proposal: remove the `title` parameter from `smartLink()` HOT 1
- Typo in MDN Curriculum home page HOT 2
- The image flaw check function can not correctly handle the raw non-uri-encoded image src HOT 1
- APIRef macro adds duplicate related entries in sidebar
- Footer box is merged with the Specifications table HOT 1
- Copy to clipboard not working for interactive examples HOT 2
- Change alt/tooltips to include the browser name due to long lists
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yari.