Skip to content

Commit

Permalink
Changes th width property to string type in schema (#472)
Browse files Browse the repository at this point in the history
* Changes th width property to string type in schema

* Updates version to 0.4.0
  • Loading branch information
rpaul-stripe committed Nov 30, 2023
1 parent 4d3dd64 commit f59adb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@markdoc/markdoc",
"author": "Ryan Paul",
"version": "0.3.5",
"version": "0.4.0",
"description": "A text markup language for documentation",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
4 changes: 2 additions & 2 deletions spec/marktest/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@
- name: Advanced table format
code: |
{% table %}
* Test 1 - 1 {% width=20 %}
* Test 1 - 1 {% width="20%" %}
* Test 1 - 2
* Test 1 - 3
---
Expand All @@ -733,7 +733,7 @@
children:
- tag: th
attributes:
width: 20
width: 20%
children: ['Test 1 - 1 ']
- tag: th
children: [Test 1 - 2]
Expand Down
2 changes: 1 addition & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const td: Schema = {
export const th: Schema = {
render: 'th',
attributes: {
width: { type: Number },
width: { type: String },
align: { type: String },
colspan: { type: Number, render: 'colSpan' },
rowspan: { type: Number, render: 'rowSpan' },
Expand Down

0 comments on commit f59adb5

Please sign in to comment.