Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code blocks inside other blocks do not roundtrip #254

Closed
jeromesimeon opened this issue Jul 10, 2020 · 1 comment
Closed

Code blocks inside other blocks do not roundtrip #254

jeromesimeon opened this issue Jul 10, 2020 · 1 comment
Assignees
Labels
Type: Bug 🐛 Something isn't working

Comments

@jeromesimeon
Copy link
Member

For instance:

bash-3.2$ cat test/data/quotecode.md 
> ```
> a
> b
> c
> ```
bash-3.2$ ../markdown-cli/index.js transform --input test/data/quotecode.md --roundtrip 
7:55:52 PM - info: 
> ```
a
b
c
```
@jeromesimeon jeromesimeon added the Type: Bug 🐛 Something isn't working label Jul 10, 2020
@jeromesimeon jeromesimeon self-assigned this Jul 10, 2020
jeromesimeon added a commit to jeromesimeon/markdown-transform that referenced this issue Aug 28, 2020
jeromesimeon added a commit that referenced this issue Aug 28, 2020
Signed-off-by: Jerome Simeon <jeromesimeon@me.com>
@jeromesimeon
Copy link
Member Author

jeromesimeon commented Aug 28, 2020

Fixed in #306

bash-3.2$ more test/data/codeinblock.md 
> ```
> a
> b
> c
> ```
bash-3.2$ ../markdown-cli/index.js transform --from markdown --to ciceromark --input test/data/codeinblock.md --roundtrip 
11:36:56 AM - info: 
> ``` 
> a
> b
> c
> ```
bash-3.2$ more test/data/codeinblock2.md 
- > ```
  > a
  > b
  > c
  > ```
- > > ```
  > > a
  > > b
  > > c
  > > ```
bash-3.2$ ../markdown-cli/index.js transform --from markdown --to ciceromark --input test/data/codeinblock2.md --roundtrip 
-  > ``` 
   > a
   > b
   > c
   > ```
-  > > ``` 
   > > a
   > > b
   > > c
   > > ```
bash-3.2$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant