Skip to content

Commit 7801b73

Browse files
wip
1 parent a0cf146 commit 7801b73

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<pre class="phiki language-php github-light focus" data-language="php" style="background-color: #fff;color: #24292e;"><code><span class="line"><span class="token" style="color: #005cc5;">echo</span><span class="token"> </span><span class="token" style="color: #032f62;">&quot;</span><span class="token" style="color: #032f62;">This line is not focused!</span><span class="token" style="color: #032f62;">&quot;</span><span class="token">;</span><span class="token">
2+
</span></span><span class="line focus"><span class="token" style="color: #005cc5;">echo</span><span class="token"> </span><span class="token" style="color: #032f62;">&quot;</span><span class="token" style="color: #032f62;">This line is focused.</span><span class="token" style="color: #032f62;">&quot;</span><span class="token">;</span><span class="token">
3+
</span></span><span class="line"><span class="token" style="color: #005cc5;">echo</span><span class="token"> </span><span class="token" style="color: #032f62;">&quot;</span><span class="token" style="color: #032f62;">This is also not focused.</span><span class="token" style="color: #032f62;">&quot;</span><span class="token">;</span><span class="token">
4+
</span></span></code></pre>

tests/Adapters/CommonMark/Transformers/AnnotationsTransformerTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,17 @@
8787
expect($output)->toMatchSnapshot();
8888
});
8989
});
90+
91+
describe('focus', function () {
92+
it('can focus a line', function () {
93+
$output = markdown(<<<'PHP'
94+
echo "This line is not focused!";
95+
echo "This line is focused."; // [code! focus]
96+
echo "This is also not focused.";
97+
PHP, Theme::GithubLight, Grammar::Php);
98+
99+
echo $output;
100+
101+
expect($output)->toMatchSnapshot();
102+
});
103+
});

0 commit comments

Comments
 (0)