This repository has been archived by the owner on Jan 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Vars in HLJS snippets with no spans (#425)
Fixes gravitational/teleport#35907 The `rehype-hljs-var` plugin replaces `Var` tags with placeholder strings, applies syntax highlighting, then substitutes the placeholder strings with the original `Var` tags. It assumes that each `Var` must be the child of a `span` tag, though this assumption is not always correct. This change removes the requirement that the plugin check children of `span` tags for `Var`s.
- Loading branch information
Showing
4 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```powershell | ||
certutil -dspublish -f <Var name="user-ca.cer" /> NTAuthCA | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<pre><span class="hljs language-powershell">certutil -dspublish -f </span><var name="user-ca.cer"></var><span class="hljs language-powershell"> NTAuthCA | ||
</span></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
800a283
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docs – ./
docs-goteleport.vercel.app
docs-kohl-delta.vercel.app
docs.goteleport.com
docs-git-main-goteleport.vercel.app