diff options
author | https://id.koumbit.net/anarcat <https://id.koumbit.net/anarcat@web> | 2012-04-23 10:10:12 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2012-04-23 10:10:12 -0400 |
commit | 606be5f7a73895d8f987706546cc40da562aa384 (patch) | |
tree | 5649ca48392492a17e73b2eaf03dac513a2ca198 /doc/plugins/contrib | |
parent | 5487c524df984d7e2f79dd8f9c01edf08403e07c (diff) | |
download | ikiwiki-606be5f7a73895d8f987706546cc40da562aa384.tar ikiwiki-606be5f7a73895d8f987706546cc40da562aa384.tar.gz |
the problem is with YAML::Any, hardcoding YAML::XS fixes the issue. delimiters are parsed?
Diffstat (limited to 'doc/plugins/contrib')
-rw-r--r-- | doc/plugins/contrib/ikiwiki/directive/ymlfront/discussion.mdwn | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/plugins/contrib/ikiwiki/directive/ymlfront/discussion.mdwn b/doc/plugins/contrib/ikiwiki/directive/ymlfront/discussion.mdwn index e9431dc83..f49c85079 100644 --- a/doc/plugins/contrib/ikiwiki/directive/ymlfront/discussion.mdwn +++ b/doc/plugins/contrib/ikiwiki/directive/ymlfront/discussion.mdwn @@ -30,4 +30,8 @@ I have tried both the ymlfront directive and the YAML markup (with the > > > > Now *that* has to be related... ;) In the index.db, there is no ymlfront metadata for the sandbox page... Note that the `---` delimiter approach doesn't trigger the warning but doesn't populate the DB either... > > -> > Finally note that after adding debugging code, I was able to figure out that this seems to be using the `YAML::XS` library. I have also traced the data and confirmed that `$yml_str` does get properly initialized in `parse_yml`, and it is where the error is generated. So maybe there's something wrong with the YAML library? --[[anarcat]] +> > Finally note that after adding debugging code, I was able to figure out that this seems to be using the `YAML::XS` library. I have also traced the data and confirmed that `$yml_str` does get properly initialized in `parse_yml`, and it is where the error is generated. So maybe there's something wrong with the YAML library? +> > +> > Update: well, look here: using `YAML::Syck` doesn't yield the same error *and* the metadata actually works! So this is a problem specific to `YAML::Any`. Hardcoding `use YAML::XS` or *even* `use YAML::Any` fixed the problem for me. +> > +> > Now delimiters also work, but the output is kind of ugly: it gets parsed as regular markdown makup so the `---` makes horizontal lines in the beginning and headings in the end... --[[anarcat]] |