jeffreytse / jekyll-spaceship

🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
MIT License
605 stars 63 forks source link

Weird behavior with the code block #58

Closed jeffreytse closed 2 years ago

jeffreytse commented 2 years ago

For some reason, the sample below produces a wrong result.

---
layout: post
title: testtttt
subtitle: just a test.
categories: test
tags: [test, bug, weird, help]
---
``` diff
+        'user_exists' => 'SELECT EXISTS(SELECT 1 FROM table WHERE username = (:username || \'@sample'))',
+        'get_users' => 'SELECT split_part(username, \'@\', 1) FROM table WHERE (username ILIKE :search) OR (name ILIKE :search)',
+        'get_password_hash_for_user' => 'SELECT split_part(password, \'{CRYPT}\', 2) FROM table WHERE username = (:username || \'@sample\')',
+        'set_password_hash_for_user' => 'UPDATE table SET password =  \'{CRYPT}\' || :new_password_hash WHERE username = (:username || \'@sample\')',
``` 
Reload the Nginx:

``` console
$ sudo nginx -s reload
```

#### Sample title three

Sample test wit a [sample link](https://google.com).

The \<password\> will be in the file `samplefile.tips` in the `sample:` section.

| **Sample table**               | **Sample table**    |
| ---------------------------------- | -------------------------------------- |
| Email user: joanadarc@sample.com | Email user: joanadarc@sample.com     |
| Nextcloud user: joanadarc          | Nextcloud user: joanadarc@sample.com |

The code block was corrupted as below image:

image