markdown_extension 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84d0ed37fd3f0cdd2a3d4579784f4a551332e348e6045b6b6b528007ecd1bd1d
4
- data.tar.gz: 48499780c8921299b1d4163a7874ff459c77a41005c6318e655abf03a6976a1a
3
+ metadata.gz: 46c92c82a1850eaf44ae6b46cfea8b3f04c411d4f751218845135d4cd658e8d5
4
+ data.tar.gz: 3d5a40764774d07ef90bbb3843a8c6ed5a088dc68717f31446af78da77f8616f
5
5
  SHA512:
6
- metadata.gz: 04f94cc25c7a5d5e345aec0db1bfba01df9280460f53c214598d65bf0a413dd4373459d203a6f9f7d31482c6072923a33ebecb86409e243bdc900aded7961814
7
- data.tar.gz: ad24ee78e8fe8496484accdb3de029e53f01164c7149c3389a42dc19aa8f9531f89df17e74f591de94eaec813ac81ea791c34a2918ea9b9a3414d628e14280b1
6
+ metadata.gz: 69f51d192413f0e8f531642922f757cd7fdda114e9a668424f14782fe5eec355b91622715ac767b588b8c352efa906fd599db5d1d2f029bbbf577389968e78db
7
+ data.tar.gz: 51e4b0f055c3e5420996a00d42fcff7fa8ea8aa073f25d00b585a32f0d0cb348f01873e545e086ad7f3d5751191f59c7b47c594c75bdd3e6e228dc19ef2eb523
@@ -18,8 +18,19 @@ module MarkdownExtension
18
18
  @meta = mds[1]
19
19
  @markdown = mds[2..-1].join("---\n")
20
20
  end
21
- if @markdown[-1]=="-"
22
- @markdown = @markdown[0..-2]
21
+ if @site.config.type == :logseq
22
+ @markdown.gsub!(/\t/, " ")
23
+ if @markdown[-1]=="-"
24
+ @markdown = @markdown[0..-2]
25
+ end
26
+ @markdown.gsub!(/(.+)collapsed:: true\n/, "")
27
+ @markdown = @markdown.gsub(/.+(- )[0-9]+\./) do |s|
28
+ s.gsub("- ","")
29
+ end
30
+ while (i = @markdown.index(":LOGBOOK:")) do
31
+ j = @markdown.index(":END:", i)
32
+ @markdown=@markdown[0..i-4] + @markdown[j+5..-1]
33
+ end
23
34
  end
24
35
  @item_name = file.split("/")[-1].gsub(".md","")
25
36
  end
@@ -1,3 +1,3 @@
1
1
  module MarkdownExtension
2
- Version = '0.0.8'
2
+ Version = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zhuang Biaowei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-05 00:00:00.000000000 Z
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tomlrb