atom-tidy-markdown icon indicating copy to clipboard operation
atom-tidy-markdown copied to clipboard

slide separators "---" are converted to headers "---------------" when saving a file.

Open jruels opened this issue 10 years ago • 3 comments

Hello, When editing a markdown file with "---" if I save the file tidy-markdown automatically converts it to a header "--------". This breaks the reveal.js slides.

Thanks!

jruels avatar Oct 02 '15 20:10 jruels

Tidy-markdown should never output an h2 with a dashed line under it... it would look like ## header. Maybe it's being turned into a <hr>? Can you post some example code before and after running tidy-markdown?

Also, can you point me to the docs on reveal.js slide separators? From a cursory look at it, it looks like it just uses section tags for slides.

notslang avatar Oct 02 '15 20:10 notslang

Sorry for the delay.

I am using Atom with the Github Markdown syntax and tidy-markdown. Below is the original code.

<!-- .slide: data-state="titleslide" -->

# Docker Volumes Lab


Note:

Lab Time:

---

## Lab Overview

- Viewing Container Volumes
- Mapping a Local Volume

---

## Open Windows PowerShell

Right-click the bottom left of the taskbar and click **Windows Powershell**

*Note: To open Windows PowerShell, you can also use the *Win+X* shortcut.*

<!-- .element: style="font-size: 0.6em;" -->

---

## Configure the PowerShell environment

Configure the environment by running `docker-machine.exe env --shell=powershell default | Invoke-Expression`.


PS C:\Users\train> docker-machine.exe env --shell=powershell default | Invoke-Expression
PS C:\Users\train>


<!-- .element: style="font-size: 0.4em;" -->

*Note that this must be set every time that you start a new PowerShell session.*

<!-- .element: style="font-size: 0.6em;" -->

---

and if I save it with Atom while tidy-markdown is enabled it turns into this.

---
- Viewing Container Volumes
- Mapping a Local Volume
---

<!-- .slide: data-state="titleslide" -->

# Docker Volumes Lab
Note:

Lab Time:

## Open Windows PowerShell
Right-click the bottom left of the taskbar and click **Windows Powershell**

_Note: To open Windows PowerShell, you can also use the _Win+X_ shortcut._
<!-- .element: style="font-size: 0.6em;" -->

--------------------------------------------------------------------------------

## Configure the PowerShell environment
Configure the environment by running `docker-machine.exe env --shell=powershell default | Invoke-Expression`.


PS C:\Users\train> docker-machine.exe env --shell=powershell default | Invoke-Expression
PS C:\Users\train>


<!-- .element: style="font-size: 0.4em;" -->

_Note that this must be set every time that you start a new PowerShell session._
<!-- .element: style="font-size: 0.6em;" -->

--------------------------------------------------------------------------------

If I save it using "Plain Text" syntax and tidy-markdown it saves correctly, but if I save with both Github Markdown syntax and tidy-markdown it gets mangled.

Thanks, -js

jruels avatar Oct 20 '15 21:10 jruels

I have the same issue.

mb-dev avatar Dec 15 '15 03:12 mb-dev