<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>swfz</author_name>
  <author_url>https://blog.hatena.ne.jp/swfz/</author_url>
  <blog_title>notebook</blog_title>
  <blog_url>https://swfz.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>Markdown</anon>
    <anon>Obsidian</anon>
    <anon>AST</anon>
    <anon>frontmatter</anon>
  </categories>
  <description>前回の続き 前回はMarkdownの内容をASTに変換してAST内のコンテンツを追加編集するものだったが、今回はMarkdown内のFrontmatterに対して追加や修正を行う ケースとしてはぼちぼちあると思うので残しておく frontmatterの判定 micromark-extension-frontmatter,mdast-util-frontmatterを読み込んでfrontmatterをパースできるようにする syntax-tree/mdast-util-frontmatter: mdast extensions to parse and serialize frontmatter…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fswfz.hatenablog.com%2Fentry%2F2023%2F08%2F27%2F230004&quot; title=&quot;mdastとjs-yamlを使ってすでに存在するMarkdownファイルのfrontmatterに項目の追加や修正をする - notebook&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/swfz/20230827/20230827225931.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-08-27 23:00:04</published>
  <title>mdastとjs-yamlを使ってすでに存在するMarkdownファイルのfrontmatterに項目の追加や修正をする</title>
  <type>rich</type>
  <url>https://swfz.hatenablog.com/entry/2023/08/27/230004</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
