title: multiline latex equation in R Markdown and Windows
body: <p>The following code works fine on linux:</p>
  
  <pre><code>---
  title: "LaTeX test"
  author: "Ignacio"
  output: html_document
  ---
  
  
  ## Latex
  
  $$ 
  \begin{aligned}
  
  y_j \sim N(\theta_j , \sigma_j^2) \\
  
  \sigma_j = \nu/\sqrt{n_j}   \\
  
  \theta = \mu +\tau \times \eta \\
  
  \eta \sim N(0,1) \\
  
  \mu + \tau\times\eta = \theta \sim N(\mu , \tau^2)
  
  \end{aligned}
  $$
  </code></pre>
  
  <p>On Windows, rstudio renders the equations correctly:</p>
  
  <p><a href="https://i.stack.imgur.com/9fq7n.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9fq7n.png" alt="enter image description here"></a></p>
  
  <p>But, when I Knit the file and open the HTML with chrome or ie the latex is not rendered correctly:</p>
  
  <p><a href="https://i.stack.imgur.com/6qo4k.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6qo4k.png" alt="enter image description here"></a></p>
  
  <p>Is there a way to fix this?</p>