@6harps Despite what @elixirgraphics writes, I’m not a markdown expert. But let me add some thoughts:
- the main purpose of markdown is to simplify the process of writing HTML. And it does.
- at one point in time (e.g. 1990s) web design was typically done by mixing “content” with “style” (which is, by the way, exactly what you’ve done). The big breakthrough was the development of CSS. What this meant was designers could write CSS to explicityly style or format various parts of their content as they desired (e.g. header formatting). This left HTML for content, CSS for formatting. It was a big breakthrough.
One more revolutionary thing about CSS: you wrote your styles once in a special style sheet that the rest of your website would use. This reduced a lot of busy work, duplication, and more. Put simply, it radically simplified the process of developing websites. CSS really should stand for do once, do well.
If you put the 2 points above together what you get now is:
- use markdown for content (the simplified form of HTML)
- use CSS for styling (for the entire website, not just one paragraph, or one page)
I’m simplifying and there are exceptions, but hopefully you get the gist. In your case you are going back to the 1990s. The overall thinking behind CSS is “style once, style well”. What does this mean in your situation? It means you really don’t want to be styling your H3 header every time you use an H3 header. That’s a waste of energy and time.
Okay, that’s the big level ideas. In your case I would suggest, for now, just using ### Header 3 Content
and nothing else. I’m assuming you done similar things on other posts. So, first, just simplify. The centering of H3s can be done once in your RW project file and then all H3s will be centered. (BTW, if you want only a few H3s to be centered then that’s a different matter, but it’s good practice to be consistent throughout on the styling of various elements like H3, paragraphs, etc.)
… yes, I hear you, “But I want all those H3 headers centered!”. There are ways to do that but that can be a second step. Let us know if you are using Foundry 2 or Foundry 3 … that will make a difference in terms of suggestions for your next steps.
That’s what I’d suggest. If you really really want to make your life more complicated in the long run then you could add some code to center H3. It would be of this format:
<center><h3>H3 Header Content</h3></center>
If you compare what I’ve written just above to what you’ve done you can spot the differences. I’m explicitly telling when to start centering and when to stop centering. Ditto with H3: explicitly telling when to start and stop.
But that’s the quick fix. In the long run you make your life more complicated by doing this … even if it doesn’t seem like it to you right now.