Usually those are shown in DOCX editor as you activate the option to see them. Otherwise they are hidden.
But in which type of output are you seeing this ? You are using HTML code in your YAML so maybe HTML ?
Using tag like <center> is now considered obsolete, and also among block element not inline.
I don't think using them in YAML field like this will give you the expected results and it may creates more paragraph than you need, hence more pilcrows
thanks. Yes it is for a HTML output. It used to work find till a week ago. So that code stop working after an update. So is there other way to center those elements?
It seems it appears with Pandoc 2.19. If I use pandoc 2.18, I don't get those. So probably an upgrade of RStudio IDE has upgraded Pandoc and caused this behavior.
I still believe this is to show that somehting is wrong using block element on inlines. Usually to center element, you use custom CSS to change the default theme
You would need to learn a bit of CSS to know how to tweak style in a HTML doc. You could use this for example to center the part you want in the header
My understanding of the change in Pandoc is that before the YAML content was read as Blocks but now Inlines, which seems to add the ANSI code 182 (ASCII Code 182 (Windows-1252)) that shows in your document.
Maybe an issue in Pandoc
Example for the author field before with Pandoc 2.18 when reading the metadata in AST
I had confirmation this was kind of an issue in Pandoc - The pilcrow you see is indeed because now metadata are considered blocks, but in future Pandoc version, it will be a space and no more a pilcrow.
I think I've been able to successfully downgrade the version of Pandoc used by rmarkdown as described here but I am still getting the pilcrows showing up. Would love to hear if someone has developed a workaround for pdf documents for the time being.