thinktandem / old-website

0 stars 0 forks source link

Figure out why our prism code style blocks are obeying markdown #64

Closed pirog closed 8 years ago

pirog commented 8 years ago

@reynoldsalec

So there might be a place in the markdown spec to add more elements but by default markdown will be ignored inside blocks ie <div></div> http://stackoverflow.com/questions/701042/disable-markdown-for-a-block

So we can actually do something like this for our code blocks to ignore the MD

  <div><pre><code class="language-bash">
  # If using Kalabox CLI
  kbox create pantheon -- -v \
    --site=big-brand-here \
    --env=dev \
    --nodb \
    --nofiles \
    --name=big-brand-here \
    --dir=/Users/yournamehere/.kalabox/apps

  # Or to place the App in your Mac OS Sierra 'Documents' Cloud Storage
  kbox create pantheon -- -v \
    --site=big-brand-here \
    --env=dev \
    --nodb \
    --nofiles \
    --name=big-brand-here \
    --dir=/Users/yournamehere/Documents/Sites
  </pre></code></div>

So you actually still have to escape a few things here eg *.js will end up as <em>.js so you need to do \*.js.

pirog commented 8 years ago

@reynoldsalec im going to close this out. there isnt a good reason to explore doing this without the wrapping <div></div> tags beyond curiosity and we've got bigger fish to fry.