Closed ya332 closed 2 years ago
Hi @ya332 , thanks for the question.
Yes, you can write with Markdown in the excerpt content, but we've found that some symbols cause errors. The error messages will usually point you the right location. You will often need to replace a symbol with its HTML entity.
One symbol in particular that causes an error is a quotation mark. Since the excerpt itself is indicated by surrounding quotations marks, when you include any quotation marks within the excerpt, it becomes unclear where the start and end of the excerpt are.
In your first example, instead of writing "Hello"
, try writing "Hello"
.
Feel free to share additional code (e.g. line 28 in your second example), and I may be able to pinpoint the issue.
Thanks @klyburke. This is very helpful. I was able to solve my issue. I am closing this thread.
We can provide excerpt, which is great, but I am getting this if I provide a markdown syntax to the excerpt:
can not read a block mapping entry; a multiline key may not be an implicit key at line 15, column 1:
Below is the markdown that I give to my exceprt
I also got the following when I tried a longer markdown
Is there a way to create markdown based excerpt rather than just a string? I see here that (https://builderbook.org/books/builder-book/set-up-node-js-project-vs-code-editor-and-lint-set-up-next-js-project-material-ui-integration-server-side-rendering-custom-styles) the preview provided has all sort of markdown capabilities like image adding, indentation, bullet points, bold text, large text etc. How do you provide these to the excerpt? I can only provide plain strings to the exceprt?
Any insights would be greatly appreciated. Thanks.