Commit d2fcb34
authored
Fix issue with apparent codeblock within other codeblock (#3527)
* Fix issue with apparent codeblock within other codeblock
If there is a triple quoted string inside a codeblock that that appears
invalid the current implementation will trigger the the "Bat ticks
message". This is confusing to the user and generally wrong because that
happens to be correct. What needs to happen is that the we should
isolate the codeblocks and make sure that the violating codeblock is not
contained within a codeblock.
This change handles that scenario by checking all of the invalid codeblocks
to generate the correct message based on the invalid codeblock. If a
message contains multiple invalid codeblocks and there is at least one that
is using invalid ticks the invalid ticks message will be shown. If there
is no codeblock with invalid ticks the missing language and no language
logic will be followed without change.
* Fix formatting issue
* Formatting.
* Fix more formatting issues.
* Restore removed newline1 parent 6700250 commit d2fcb34
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
152 | 168 | | |
153 | 169 | | |
154 | 170 | | |
| |||
0 commit comments