Skip to content

Commit

Permalink
Merge pull request #10 from CloudCannon/update-attribute-options
Browse files Browse the repository at this point in the history
Allow all HTML tags in MarkdownAttributeElementOptions
  • Loading branch information
rycoll authored Aug 21, 2024
2 parents 7f4f4ce + 4baad2e commit f07306d
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/configuration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,12 @@ import type { Syntax } from './syntax';
export type InstanceValue = 'UUID' | 'NOW';
export type EditorKey = 'visual' | 'content' | 'data';
export type SortOrder = 'ascending' | 'descending' | 'asc' | 'desc';
export type AttributeListPosition = 'none' | 'right' | 'space right' | 'below' | 'newline below';
export type AttributeListPosition = 'none' | 'right' | 'space right' | 'below' | 'newline below' | 'right-of-prefix';

export interface MarkdownAttributeElementOptions {
export type MarkdownAttributeElementOptions = {
inline?: AttributeListPosition;
block?: AttributeListPosition;
ul?: AttributeListPosition;
ol?: AttributeListPosition;
li?: AttributeListPosition;
table?: AttributeListPosition;
tr?: AttributeListPosition;
td?: AttributeListPosition;
blockquote?: AttributeListPosition;
img?: AttributeListPosition;

}
} & Partial<Record<keyof HTMLElementTagNameMap, AttributeListPosition>>;

export interface MarkdownSettings {
engine: 'commonmark' | 'kramdown';
Expand Down

0 comments on commit f07306d

Please sign in to comment.