Skip to content

Commit fb1dc54

Browse files
authored
Merge pull request #207 from schloerke/patch-2
Use italics when rendering a "required" default value
2 parents 434e62f + cf454f8 commit fb1dc54

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,8 @@ on:
99
types: [published]
1010

1111
jobs:
12-
run-if:
13-
name: "Run If"
14-
runs-on: ubuntu-latest
15-
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false
16-
steps:
17-
- run: |
18-
echo "Running CI"
1912
test:
2013
name: "Test"
21-
needs: ["run-if"]
2214
runs-on: ubuntu-latest
2315
strategy:
2416
fail-fast: false

quartodoc/renderers/md_renderer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def render(self, el: ds.DocstringSectionParameters):
421421
@dispatch
422422
def render(self, el: ds.DocstringParameter) -> Tuple[str]:
423423
# TODO: if default is not, should return the word "required" (unescaped)
424-
default = "required" if el.default is None else escape(el.default)
424+
default = "_required_" if el.default is None else escape(el.default)
425425

426426
annotation = self.render_annotation(el.annotation)
427427
clean_desc = sanitize(el.description, allow_markdown=True)

0 commit comments

Comments
 (0)