Skip to content
Snippets Groups Projects
  1. Apr 19, 2015
  2. Mar 21, 2015
  3. Mar 19, 2015
  4. Jan 31, 2015
  5. Jan 27, 2015
  6. Jan 26, 2015
  7. Nov 16, 2014
    • Raniere Silva's avatar
      Fix template layout · df30e97c
      Raniere Silva authored
      The body variable at Pandoc template **must** not be indented
      because the indentation will propagate into the HTML.
      
      Example:
      
          $ cat page.html
          <!DOCTYPE html>
          <html>
            <body>
              $body$
            </body>
          </html>
          $ pandoc -s -t html --template=page -o sample.html sample.md
          $ cat sample.html
          <!DOCTYPE html>
          <html>
            <body>
              <pre><code>def foo():
                  return None</code></pre>
            </body>
          </html>
      
      Solution:
      
          $ cat fix.html
          <!DOCTYPE html>
          <html>
            <body>
          $body$
            </body>
          </html>
          $ pandoc -s -t html --template=fix -o sample-fix.html sample.md
          $ cat sample-fix.html
          <!DOCTYPE html>
          <html>
            <body>
          <pre><code>def foo():
              return None</code></pre>
            </body>
          </html>
      df30e97c
  8. Nov 13, 2014
  9. Nov 12, 2014
  10. Nov 10, 2014