-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Priblem with passing multuple options of the same type #25
Comments
Hi, edit pandoc->option:
and pandoc->execute:
And for the usage:
|
To make it more compatible with previous implementation another option could be this:
$override is set to true by default to keep compatiblility to previous version. so usage would be:
Note: |
Hello,
i like the wrapper a lot, but I've stumbled on an issue, which is crucial for my implementation, and it looks like a bug.
When I pass multiple options of the same type, which are supported by pandoc ( you can pass multiple --metadata or --variable options), the wrapper passes on only the first one ... for example in
echo (new \Pandoc\Pandoc) ->from('markdown_mmd') ->inputFile(mmd_file($id)) ->option('standalone') ->option('self-contained') ->option('template',$okvir) ->option('css',$css) ->option('metadata-file', $yaml_file) ->option('metadata','x=y') ->option('metadata', 'n_izv_text='.$nizi['original']) ->to('html5') ->log($log_file) ->run();
I can access variable x in the template, but the n_izv_text or any other metadata does not get passed to template?
Any ideas on why is that?
Thank you in advance,
Regards, Om
The text was updated successfully, but these errors were encountered: