chat_sdk-messenger 0.8.0 → 0.9.0

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: 39fefcd5d56e3ba03a0e6ede236f70ea34d042628efd64de0fe6e2f976e1f5d3
4
- data.tar.gz: 62d6cdc66cd763395aafb0ca85c6d3de044eb425cd4c8d94b33ec89761536510
3
+ metadata.gz: b4d8f696c79c1337a59a1ea5c89bb4ed40466a97bd95d41957ec5bc24a36b5a9
4
+ data.tar.gz: 4c03868e5d278bd21281baed7202cadc8e3cef888e4ec057322893583e65ac7c
5
5
  SHA512:
6
- metadata.gz: 741fe3ae1220ff246878311698c8eda3618fb719c224c63bbfabbeae8716984406ecb9ca37cb067208e9413dd1b9fc52756baecd0c3e40514f0c09deed42e018
7
- data.tar.gz: 9825eebdbf6d08e5a051f3d2812c1bf6ec6bd5142748c1b6e8edd8ffad374698eef13001dc81158470f73718179a7b003d6c66527bf9c1dcaab139412e2723ba
6
+ metadata.gz: f7e99f08f87f4124786ef635b902f83e201405a908f24824c503e930fa4a2ca18fb6648bedf838b768ce01744a64a502ade240a401addc9dcf53e6788fbcbdc9
7
+ data.tar.gz: 33fa887d16e6713984575e0c9fae58e56ea725f043744547fe1785df8eba96d585ea88d05ee4b7fab8ceb0e436fecc1fd8f9256dddb967d5c3e0d6270d919d9c
@@ -15,30 +15,6 @@ module ChatSDK
15
15
 
16
16
  strip_markdown(text)
17
17
  end
18
-
19
- private
20
-
21
- def strip_markdown(text)
22
- result = text
23
-
24
- # Remove fenced code blocks but keep content
25
- result = result.gsub(/```\w*\n?([\s\S]*?)```/, '\1')
26
-
27
- # Remove inline code markers
28
- result = result.gsub(/`([^`]+)`/, '\1')
29
-
30
- # Convert links: [text](url) → text (url)
31
- result = result.gsub(/\[([^\]]+)\]\(([^)]+)\)/, '\1 (\2)')
32
-
33
- # Remove bold markers: **text** → text
34
- result = result.gsub(/\*\*(.+?)\*\*/m, '\1')
35
-
36
- # Remove italic markers: *text* → text
37
- result = result.gsub(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/m, '\1')
38
-
39
- # Remove strikethrough markers: ~~text~~ → text
40
- result.gsub(/~~(.+?)~~/m, '\1')
41
- end
42
18
  end
43
19
  end
44
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chat_sdk-messenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Quentin Rousseau