jupyterlab_github_markdown_alerts_extension 1.0.11 → 1.0.17

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.
package/README.md CHANGED
@@ -13,6 +13,7 @@ This extension brings GitHub's alert syntax to JupyterLab, allowing you to creat
13
13
  ![Alert Examples Screenshot](.resources/screenshot.png)
14
14
 
15
15
  **Key Features**:
16
+
16
17
  - Five alert types - NOTE, TIP, IMPORTANT, WARNING, CAUTION
17
18
  - Automatic theme adaptation - colors adjust for light and dark modes
18
19
  - GitHub-compatible syntax - works with standard GitHub markdown alert notation
package/lib/index.js CHANGED
@@ -116,7 +116,7 @@ function postProcessAlerts(html, showBackgrounds) {
116
116
  return (`<div class="markdown-alert ${config.className}${backgroundClass}" dir="auto">` +
117
117
  `<p class="markdown-alert-title" dir="auto">${icon}${config.title}</p>` +
118
118
  content +
119
- `</div>`);
119
+ '</div>');
120
120
  });
121
121
  return result;
122
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab_github_markdown_alerts_extension",
3
- "version": "1.0.11",
3
+ "version": "1.0.17",
4
4
  "description": "Jupyterlab extension to render alerts tips like they are rendered in github in markdown",
5
5
  "keywords": [
6
6
  "jupyter",
package/src/index.ts CHANGED
@@ -176,7 +176,7 @@ function postProcessAlerts(html: string, showBackgrounds: boolean): string {
176
176
  `<div class="markdown-alert ${config.className}${backgroundClass}" dir="auto">` +
177
177
  `<p class="markdown-alert-title" dir="auto">${icon}${config.title}</p>` +
178
178
  content +
179
- `</div>`
179
+ '</div>'
180
180
  );
181
181
  }
182
182
  );
package/style/base.css CHANGED
@@ -18,30 +18,29 @@
18
18
  margin-bottom: 0;
19
19
  }
20
20
 
21
- /* Tighten paragraph spacing inside alerts */
21
+ /* Override JupyterLab's 1em margins for tighter alert content */
22
22
  .markdown-alert p {
23
- margin-top: 0.5em;
24
23
  margin-bottom: 0.5em;
25
24
  }
26
25
 
27
- /* Tighten list spacing inside alerts */
28
26
  .markdown-alert ul,
29
27
  .markdown-alert ol {
30
- margin-top: 0.5em;
31
28
  margin-bottom: 0.5em;
32
- padding-left: 1.5em;
33
29
  }
34
30
 
35
- .markdown-alert li {
36
- margin-top: 0.25em;
37
- margin-bottom: 0.25em;
31
+ .markdown-alert ul ul,
32
+ .markdown-alert ul ol,
33
+ .markdown-alert ol ul,
34
+ .markdown-alert ol ol {
35
+ margin-bottom: 0;
38
36
  }
39
37
 
40
- .markdown-alert li:first-child {
41
- margin-top: 0;
38
+ /* Remove paragraph margins inside list items */
39
+ .markdown-alert li p {
40
+ margin-bottom: 0;
42
41
  }
43
42
 
44
- .markdown-alert li:last-child {
43
+ .markdown-alert li {
45
44
  margin-bottom: 0;
46
45
  }
47
46
 
@@ -156,7 +155,9 @@ body[data-jp-theme-light='false'] .markdown-alert-warning {
156
155
  border-left-color: #d29922;
157
156
  }
158
157
 
159
- body[data-jp-theme-light='false'] .markdown-alert-warning .markdown-alert-title {
158
+ body[data-jp-theme-light='false']
159
+ .markdown-alert-warning
160
+ .markdown-alert-title {
160
161
  color: #d29922;
161
162
  }
162
163
 
@@ -164,7 +165,9 @@ body[data-jp-theme-light='false'] .markdown-alert-caution {
164
165
  border-left-color: #f85149;
165
166
  }
166
167
 
167
- body[data-jp-theme-light='false'] .markdown-alert-caution .markdown-alert-title {
168
+ body[data-jp-theme-light='false']
169
+ .markdown-alert-caution
170
+ .markdown-alert-title {
168
171
  color: #f85149;
169
172
  }
170
173