mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
splitting 2.1 and 2.2 readme's
This commit is contained in:
@@ -22,7 +22,7 @@ async function run() {
|
||||
marked.setOptions({ renderer });
|
||||
|
||||
if (div) {
|
||||
const response = await fetch('../README.md');
|
||||
const response = await fetch(div.dataset['src'] || '../README.md');
|
||||
const markdownText = await response.text();
|
||||
div.innerHTML = marked(markdownText, { baseUrl: '../' });
|
||||
restoreScroll(div);
|
||||
|
||||
Reference in New Issue
Block a user