Hi there,
When I include a pandoc metadata file when I comple my project it is not formatted correctly in the Markdown file. This pandocomatic does not process the outputted *.md file.
my Pandoc metadata file looks like
---
author:
- name: Immanuel Koks
keywords:
- test
- pandoc
pandocomatic:
use-template:
- docx-sbl
title: <$projecttitle>
---
<---
# <$t:chapter_txt><$t:chapter_txt>
# <$n:chapter><$n:chapter>
--->
But it comes out as the followng in the .md file
---
author:
\- name: Immanuel Koks
keywords:
\- test
\- pandoc
pandocomatic:
use-template:
\- docx-sbl
title: PhD\_Project
---
\<---
\# OneTwo
\# 12
---\><!--- --->
This of course will not process as because it is not correctly formatted YAML.
My question is, why doesn’t it transfer as plain text, since my Front matter is formatted “As-is”
The resulting log file is
=== ------------------------------------------------------ ===
=== Scrivomatic V1.0.29 Report @ 2021-10-26 18:08:47 +1300 ===
=== ------------------------------------------------------ ===
Working directory: /Users/immanuelkoks/OneDrive - University of Otago/PhD/Sandpit
Initiating with Ruby 2.6.3
===------ Input Options: ------===
#<struct Scrivomatic::OPT input="BAC2\\ origPD.md", output=nil, to=nil, yaml="/Users/immanuelkoks/.local/share/pandoc/pandocomatic.yaml", command="pandocomatic", envpath="/Users/immanuelkoks/bin:/usr/local/bin", build=false, cleanup=false, verbose=true, dry_run=false, open_log=true, data_dir=nil>
===------ Final ENV PATH: ------===
/Users/immanuelkoks/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Scrivener.app/Contents/Resources/MultiMarkdown/bin
===------ TOOL PATHS: ------===
---pandoc: /usr/local/bin/pandoc | V: 2.14.2
---pandocomatic: /usr/local/bin/pandocomatic | V: 0.2.7.6
---ruby: /usr/bin/ruby | V: ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
---rbenv versions:
---gem: /usr/bin/gem
---python: /usr/bin/python
… running pandocomatic, please wait …
===------ COMMAND OUTPUT: ------===
:: Running: /usr/local/bin/pandocomatic -c /Users/immanuelkoks/.local/share/pandoc/pandocomatic.yaml --debug BAC2\ origPD.md
::: An unexpected error has occurred. You can report this bug via https://github.com/htdebeer/pandocomatic/issues/new.
::: /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych.rb:456:in `parse': (<unknown>): mapping values are not allowed in this context at line 5 column 13 (Psych::SyntaxError)
::: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych.rb:456:in `parse_stream'
::: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych.rb:390:in `parse'
::: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych.rb:277:in `load'
::: from /Library/Ruby/Gems/2.6.0/gems/pandocomatic-0.2.7.6/lib/pandocomatic/pandoc_metadata.rb:190:in `block in extract_metadata'
::: from /Library/Ruby/Gems/2.6.0/gems/pandocomatic-0.2.7.6/lib/pandocomatic/pandoc_metadata.rb:190:in `map'
::: from /Library/Ruby/Gems/2.6.0/gems/pandocomatic-0.2.7.6/lib/pandocomatic/pandoc_metadata.rb:190:in `extract_metadata'
::: from /Library/Ruby/Gems/2.6.0/gems/pandocomatic-0.2.7.6/lib/pandocomatic/pandoc_metadata.rb:60:in `load'
::: from /Library/Ruby/Gems/2.6.0/gems/pandocomatic-0.2.7.6/lib/pandocomatic/pandoc_metadata.rb:50:in `load_file'
::: from /Library/Ruby/Gems/2.6.0/gems/pandocomatic-0.2.7.6/lib/pandocomatic/command/convert_file_multiple_command.rb:50:in `initialize'
::: from /Library/Ruby/Gems/2.6.0/gems/pandocomatic-0.2.7.6/lib/pandocomatic/pandocomatic.rb:85:in `new'
::: from /Library/Ruby/Gems/2.6.0/gems/pandocomatic-0.2.7.6/lib/pandocomatic/pandocomatic.rb:85:in `run'
::: from /Library/Ruby/Gems/2.6.0/gems/pandocomatic-0.2.7.6/bin/pandocomatic:3:in `<top (required)>'
::: from /usr/local/bin/pandocomatic:23:in `load'
::: from /usr/local/bin/pandocomatic:23:in `<main>'
:: exit status: pid 94485 exit 1
!!!---scrivomatic::runCommand() RETURN non-zero value: /usr/local/bin/pandocomatic -c /Users/immanuelkoks/.local/share/pandoc/pandocomatic.yaml --debug BAC2\ origPD.md !!!
Thanks in advance for your help.
Manny