showdownjs / showdown

A bidirectional Markdown to HTML to Markdown converter written in Javascript

Home Page:http://www.showdownjs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yaml-like Metadata parser does not handle colons in entries; returns undefined

qualityshepherd opened this issue · comments

---
title: This Title: Returns Undefined
date: 2024-2-24
tags: bugs
---

## My post

Steps:

  1. Given you have {metadata: true}
  2. convert a file with the above yaml-like metadata to html (note colon in title)

Results:

The Title will return Undefined but should return title. Looks like a bug in the yaml's regEx? I tried quotes, bacticks, entities/hex/etc.... none worked.

oooh... I got #999 😆