Skip to content

Commit 428bb0a

Browse files
committed
Cleanup
1 parent ea961e6 commit 428bb0a

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

docs/index.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,3 @@ Elastic Docs V3 is our next-generation documentation platform designed to improv
99
* [Configure content sets in V3](./configure/index.md)
1010
* [Learn about V3 syntax](./syntax/index.md)
1111
* [Contribute to V3 (developer guide)](./development/index.md)
12-
13-
14-
:::{dropdown} Markdown
15-
:open:
16-
17-
````markdown
18-
```csharp
19-
var x = 1; <1>
20-
var y = x - 2;
21-
var z = y - 2; <1> <2>
22-
```
23-
24-
1. Foo
25-
2. Bar
26-
````
27-
28-
:::
29-
30-
:::{dropdown} Output
31-
:open:
32-
```csharp
33-
var x = 1; <1>
34-
var y = x - 2;
35-
var z = y - 2; <1> <2>
36-
```
37-
38-
1. Foo
39-
2. Bar
40-
:::

src/Elastic.Markdown/Myst/CodeBlocks/EnhancedCodeBlockParser.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public override bool Close(BlockProcessor processor, Block block)
9999
continue;
100100

101101
List<CallOut> callOuts = [];
102-
103102
var hasClassicCallout = span.IndexOf("<") > 0;
104103
if (hasClassicCallout)
105104
{
@@ -108,7 +107,6 @@ public override bool Close(BlockProcessor processor, Block block)
108107
EnumerateAnnotations(matchClassicCallout, ref span, ref callOutIndex, originatingLine, false)
109108
);
110109
}
111-
112110
// only support magic callouts for smaller line lengths
113111
if (callOuts.Count == 0 && span.Length < 200)
114112
{
@@ -117,11 +115,6 @@ public override bool Close(BlockProcessor processor, Block block)
117115
EnumerateAnnotations(matchInline, ref span, ref callOutIndex, originatingLine, true)
118116
);
119117
}
120-
121-
if (callOuts.Count == 0)
122-
continue;
123-
124-
codeBlock.CallOuts ??= [];
125118
codeBlock.CallOuts.AddRange(callOuts);
126119
}
127120

0 commit comments

Comments
 (0)