aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/meta_conf_make_meta.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-12-06 14:57:05 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2020-01-13 16:06:43 -0500
commite1cec74bdc11a3476d77b9fb5f71c8ea48e64079 (patch)
tree3f68bfaabf45c3c8afbbda52f53f840717baf0aa /org/meta_conf_make_meta.org
parent0.9.2 @safe & @trusted first pass (diff)
checks on markup: yaml headers & reading images
Diffstat (limited to 'org/meta_conf_make_meta.org')
-rw-r--r--org/meta_conf_make_meta.org13
1 files changed, 6 insertions, 7 deletions
diff --git a/org/meta_conf_make_meta.org b/org/meta_conf_make_meta.org
index 9fad67a..c3da874 100644
--- a/org/meta_conf_make_meta.org
+++ b/org/meta_conf_make_meta.org
@@ -1856,14 +1856,13 @@ static template docHeaderMakeAndMetaTupYamlExtractAndConvertToStruct() {
M _manifested,
) {
Node _yaml_root;
- if (header_src.match(rgx.yaml_header_meta_title)) {
- try {
- _yaml_root = Loader.fromString(header_src).load();
- } catch {
- import std.stdio;
- writeln("ERROR failed to read document header, not parsed as yaml");
- }
+ try {
+ _yaml_root = Loader.fromString(header_src).load();
+ } catch {
+ import std.stdio;
+ writeln("ERROR failed to read document header, not parsed as yaml");
}
+ // need test for _yaml_root content
auto _header_and_make_and_meta_struct
= contentYAMLtoSpineStruct!()(_make_and_meta_struct, _yaml_root, _manifested, "header");
return _header_and_make_and_meta_struct;