Commit Graph

7 Commits

Author SHA1 Message Date
Daniel Hawton 62234064be
add missed / to @@ link handling regex (#13640)
* add missed /

* Update src/ts/codeBlocks.ts

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* remove _ from regex in code_block.html

covered by \w

---------

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>
2023-07-26 09:51:25 -07:00
Daniel Hawton 2e9e775d79
Fix handling of @@ link notation (#13637)
The regex was @.*@ which will match anything between two @'s, including a command like:
`k3d cluster create --api-port 6550 -p '9080:80@loadbalancer' -p '9443:443@loadbalancer' --agents 2 --k3s-arg '--disable=traefik&#64;server:*'`

The regex should be something that matches valid URL syntaxes.

Signed-off-by: Daniel Hawton <daniel.hawton@solo.io>
2023-07-26 07:59:41 -07:00
Martin Taillefer 4ee8fc927a
Fix a couple bugs. (#6311)
- Set the right style for the auto-inserted header links. Without this,
they didn't render correctly with the Edge browser.

- Fix broken Hugo error message, leading to broken builds if
encountered.
2020-01-08 07:24:04 -08:00
Martin Taillefer e8f8b4feb8
Improve snippet logic. (#5205)
- Support snippets that specify the body syntax and output
syntax of the snippet.

- Snippets with bash syntax triggered an incorrect error message.

- No error message was produced for a misnamed snippet

- Convert a security task to use snippets to populate its
many preformatted blocks.
2019-10-20 16:27:51 -07:00
Martin Taillefer dfb41ae672
Add support for text block links that point to other repos. (#4952) 2019-09-10 11:57:07 -07:00
Martin Taillefer 533a3efc0e
Merge from release-1.1 branch (#4012) 2019-04-20 08:16:09 -07:00
Martin Taillefer 2258d0b03b
Improve text blocks. (#3727)
- Add tests for the various text block features.

- Combine text_file and text_dynamic into text_import

- Add support for snippet extraction for text downloaded from a URL

- Add support for formatting output blocks in a different style for
content downloaded from a URL

- Report some errors when unable to fetch content from a URL.

- Fixed a few small bugs along the way.
2019-03-18 06:31:26 -07:00