marp-dev-preview 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/marp-preview.mjs +2 -1
  2. package/package.json +1 -1
package/marp-preview.mjs CHANGED
@@ -217,6 +217,7 @@ async function renderMarp() {
217
217
  });
218
218
  });
219
219
  </script>
220
+ <meta charset="UTF-8">
220
221
  </head>
221
222
  <body>
222
223
  ${html}
@@ -240,7 +241,7 @@ const server = http.createServer(async (req, res) => {
240
241
  try {
241
242
  if (req.url === '/') {
242
243
  const html = await renderMarp();
243
- res.writeHead(200, { 'Content-Type': 'text/html' });
244
+ res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' });
244
245
  res.end(html);
245
246
  } else {
246
247
  const assetPath = path.join(markdownDir, req.url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marp-dev-preview",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "A CLI tool to preview Marp markdown files.",
5
5
  "main": "marp-preview.mjs",
6
6
  "type": "module",