We actually have a similar situation with .js files. As you know, they can 
contain front matter like this:

/*\
title: $:/core/modules/commands/build.js
type: application/javascript
module-type: command

Command to build a build target

\*/
(function(){

But one can also include a .meta file. Any fields specified there are processed 
before the front matter fields, so the values there take precedence.

We should therefore be able to follow the same approach with .md files

Best wishes

Jeremy


> On 5 Aug 2021, at 16:53, PMario <pmari...@gmail.com> wrote:
> 
> On Thursday, August 5, 2021 at 2:56:28 PM UTC+2 Jeremy Ruston wrote:
> ...
> I certainly would draw the line at integrating a full YAML parser, but 
> there’s no reason why we couldn’t parse a simple subset of YAML fields from 
> MD files. 
> 
> I do agree here. The only thing we would need to implement, would be to 
> search for the --- markers, strip them out and convert the rest using the TW 
> parser. ... 
> 
> There is still the problem with the default nodejs behaviour, that it splits  
>  type: text/markdown  files into 2 elements. We would need to change that 
> back to write a single .md file with the "front-matter" stuff at the top. 
> 
> So we will need to support 2 versions. The problem is that it seems they 
> didn't change the file extension. So we do have no real indicator if a file 
> contains front-matter content or not. ... 
> 
> -mario
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+unsubscr...@googlegroups.com 
> <mailto:tiddlywiki+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/11ee592e-dae3-4e9a-bd75-1b879160d110n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/11ee592e-dae3-4e9a-bd75-1b879160d110n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/B6432C00-25D7-482D-8B2C-9CC3EC915352%40gmail.com.

Reply via email to