-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Provide example in output #4909
Comments
It says: "Please specify either |
The particular example given might make people think that this is what you have to do to specify metadata. But it's just one option. A better one, if your source is markdown, would be to use a YAML metadata block. And in future versions of pandoc, You may be right that giving an example like this is a good idea, but I'm not sold on the idea yet. |
I'm reminded of the following joke:
It seems systemic that we, as software developers, write help that indicates the problem but seldom provides a solution. This then results in numerous people asking questions about what to do next. It's also one of the reasons why StackOverflow is so popular: nobody has the time or desire to fully RTFM--especially when TFMs are dozens to hundreds of pages long. Since YAML headers are a possible solution, nothing precludes stating that as well. Or link to online documentation that provides further examples. Such as:
|
I like the joke, and I appreciate the point. But about
In this case, all they have to do is open up the manual and search for "metadata," and they should pretty quickly find the information they need. I would not be too sympathetic to someone who is unwilling to take a few seconds to do that, but doesn't mind imposing on others' time to ask questions. I looked at some of the questions you linked to. Note that many of them concern other tools that are using pandoc under the hood. In these cases the example you gave would be no help. I think people are asking the questions because they don't know the message is coming from pandoc and so don't even know where to begin looking for an answer. |
Agreed. And yet clicking a link is even faster and opens up the possibility of having more people contribute to improve the product documentation. (I have modified numerous pages on the Context Garden wiki because changing the wiki is far faster and simpler than modifying Context's console help.) |
I had this same problem, while using emacs markdown-mode and the solution was: First update pandoc to the newest verison.In ubuntu my version was So I had to update using the Then I had to add the metadata as part of my markdown file:---
pagetitle: 'This is another title'
---
I had to use finally I could generate the html with:
|
Replicate
In a Unix-y OS:
echo "# Hello" > hello.md
pandoc --standalone -s hello.md -o hello.html
Expected
Pandoc informs user as to how to eliminate the warning by way of example.
Example Output
Actual
Pandoc informs the user of the problem, but no suggestions as to an immediate solution.
Related
This issue is related to #4048.
The text was updated successfully, but these errors were encountered: