Answers.Body: <p>Well, on this site, you can use the 'replayer'. Basically, you just paste the PGN as a code block; for more details, see <a href="https://chess.meta.stackexchange.com/q/3/7297">Can we implement a replayer for chess analysis on the site?</a>.</p>
  
  <p>For example, the following code will display the first three moves of the Ruy Lopez opening:</p>
  
  <pre>
      [FEN ""]
      1. e4 e5 2. Nf3 Nc6 3. Bb5
  </pre>
  
  <p><sub>(it doesn't work right here because of the &lt;pre> block in the post source)</sub></p>
  
  <p>But this isn't really converting the PGN into Markdown, it's just Stack Exchange's rendering engine detecting the PGN and converting it into a JavaScript widget. There is no 'official' way of converting PGN into Markdown, just like there is no official way to convert it into HTML.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-29T08:39:16.763Z
Answers.LastActivityDate: 2018-11-29T08:39:16.763Z
Answers.UserDisplayName: Glorfindel
Answers.Body: <p>Sometimes when I found interesting articles, I copy it to my notepad2-mod, that allows me some simple syntax highlighting, and that has moved me to adopt the following practices with chess articles with games interspersed. </p>
  
  <p>1) For every pair of moves, supress the dot. </p>
  
  <p>2) To avoid markdown processor interpreting incorrectly the pgn header, place the game between '~~~', before and after the game. This way, the block is treated as a  block.</p>
  
  <p>3) Add the text as you please, following the markdown conventions. </p>
  
  <p>For the time being, it is not possible to assign a chess font to the move section, due to the document model followed by markdown. A document, does not change fonts on every paragraph; instead asign fonts to specific parts of the document, like title, tables and text. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-30T02:59:38.993Z
Answers.LastActivityDate: 2018-11-30T02:59:38.993Z
Answers.UserDisplayName: djnavas
Body: <p>How do I embed chess games from PGN files in markdown format?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-29T16:07:51.870Z
Comments.Text: Please expand on what you're trying to accomplish or what problem you're encountering.
Comments.UserDisplayName: GreenMatt
Tags: <learning><software>
Title: Embedding chess games from PGN in markdown
ThreadText: # Embedding chess games from PGN in markdown
  
  (Asked by: username_0 on 2018-11-29)
  
  How do I embed chess games from PGN files in markdown format?
  
  **Tags:** learning, software
  
  > **Comments:**
  > **username_1**: Please expand on what you're trying to accomplish or what problem you're encountering.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2018-11-29. Score: 2
  
  Well, on this site, you can use the 'replayer'. Basically, you just paste the PGN as a code block; for more details, see [Can we implement a replayer for chess analysis on the site?](https://chess.meta.stackexchange.com/q/3/7297).
  
  For example, the following code will display the first three moves of the Ruy Lopez opening:
  
  ```
  
      [FEN ""]
      1. e4 e5 2. Nf3 Nc6 3. Bb5
  
  ```
  
  (it doesn't work right here because of the <pre> block in the post source)
  
  But this isn't really converting the PGN into Markdown, it's just Stack Exchange's rendering engine detecting the PGN and converting it into a JavaScript widget. There is no 'official' way of converting PGN into Markdown, just like there is no official way to convert it into HTML.
  
  
  ---
  
  ### Answer by username_3 on 2018-11-30. Score: 0
  
  Sometimes when I found interesting articles, I copy it to my notepad2-mod, that allows me some simple syntax highlighting, and that has moved me to adopt the following practices with chess articles with games interspersed.
  
  1) For every pair of moves, supress the dot.
  
  2) To avoid markdown processor interpreting incorrectly the pgn header, place the game between '~~~', before and after the game. This way, the block is treated as a block.
  
  3) Add the text as you please, following the markdown conventions.
  
  For the time being, it is not possible to assign a chess font to the move section, due to the document model followed by markdown. A document, does not change fonts on every paragraph; instead asign fonts to specific parts of the document, like title, tables and text.
  
  
  ---
  
  