We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
file.data.title
Hi
Currently the title of the document is assigned like this:
const title = options.title || file.stem
There are a few situations where this value, may have been extracted/computed upstream in the processor.
#+title:
h1
Therefore, it would be great if this plugin would also have a look at data aggregated on the vfile.
vfile
If this is ok with you, I can prepare a PR with the following change and the associated documentation:
const title = options.title || file.data.title || file.stem
Thanks.
The text was updated successfully, but these errors were encountered:
Yeah, good idea I think. rehype-meta supports this too: https://github.com/rehypejs/rehype-meta#title It configures from file.data.meta: https://github.com/rehypejs/rehype-meta#title
This is also populated by https://github.com/rehypejs/rehype-infer-title-meta
So I think I'd prefer a little more privacy with file.data.meta, but otherwise good! 👍
Sorry, something went wrong.
solved in https://github.com/rehypejs/rehype-document/releases/tag/7.0.0!
No branches or pull requests
Initial checklist
Problem
Hi
Currently the title of the document is assigned like this:
There are a few situations where this value, may have been extracted/computed upstream in the processor.
#+title:
keyword if starting from an Org documenth1
element if starting from HTML documentTherefore, it would be great if this plugin would also have a look at data aggregated on the
vfile
.Solution
If this is ok with you, I can prepare a PR with the following change and the associated documentation:
Thanks.
Alternatives
The text was updated successfully, but these errors were encountered: