-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YAML Front Matter is incorrectly rendered with Version 2.3.0 #29
Comments
Hi, I think you've made a small mistake since this works as expected. The problem, I guess, is that you have added some kind of space before the front-matter. For example, probably an empty line at the beginning of the file. You must take into account that Front-Matter must be always the first thing in the file. This is by design and it works exactly the same way in any other CMS system such as Jekyll or Hugo. For example, in Jekyll you can't even have the BOM mark in UTF-8 files before the Front-Matter, which I think it's kind of crazy. In MIIS's case, it allows for more than 3 dashes as Front-Matter separator, but it absolutely must be the first thing in the file. That means: no single space or new line must exists before Front-Matter or it will be considered a part of the content. That's what's happening in your case. Since the last Solution: Just remove the extra spaces or new lines at the very top of the file and it'll work 😊 I've been working hard in my spare time on the new v3.0 of MIIS that will have tons of new features and nice new things. I hope to have it finished and polished in the next few weeks. Cheers! |
Hi, Thanks a lot! By the way: MIISHanlder.dll Version 2.2.0 didn't care about Unix or Windows/DOS. |
Hi, Ah, ok, interesting... This is why attaching the original file is always a better idea than simply pasting the contents, because even a minor detail like this can influence the result. In MIIS's case, to detect the Front-Matter I've used a simple regular expression If you check the specific line here you can see I'm using It could be easily changed so that any of them would be enough. I'll take that into consideration and think about possible problems of doing it. However, Why are you using UNIX EOL style if you're working under Windows? Just for the sake of curiosity... Maybe you need to work with some co-workers that use Linux? Cheers. |
Hi, |
Interesting. Yes, I have v3.0 very advanced, with a huge set of new features and extensibility. I think the bits will be ready very soon, although I have a lot of documentation work to do before releasing the final product. I've taken into account this problem with new lines in UNIX, and it will disappear in the new version. You can check the v3 branch for a the new code. |
I'm using the following md file.
I'm running into the following issue:
With Version 2.3.0 (MIISHanlder.dll Version 2.3.0) I'm facing the following behaviour regarding YAML Front Matter also when templating is disabled: All meta data is rendered within a
<h2>
tag in html:With Version 2.2.0 (MIISHandler.dll Version 2.2.0) this was not the case:
I have a template with a placeholder for keywords where I use the YAML Front Matter keywords to add the html meta data DC.keywords
Template Material main.html
Expected Behaviour:
Behaviour with Version 2.3.0:
The variable will not be replaced and is empty because of the YAML Front Matter keywords are already converted to
h2
tag.The text was updated successfully, but these errors were encountered: