mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
[ci] format
This commit is contained in:
parent
518e8f7e25
commit
abfe73f5dc
2 changed files with 3 additions and 8 deletions
|
@ -32,8 +32,8 @@ export const markHTMLString = (value: any) => {
|
|||
|
||||
export function unescapeHTML(str: any) {
|
||||
// If a promise, await the result and mark that.
|
||||
if(!!str && typeof str === 'object' && typeof str.then === 'function') {
|
||||
return Promise.resolve(str).then(value => {
|
||||
if (!!str && typeof str === 'object' && typeof str.then === 'function') {
|
||||
return Promise.resolve(str).then((value) => {
|
||||
return markHTMLString(value);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
export { createAstro } from './astro-global.js';
|
||||
export { renderEndpoint } from './endpoint.js';
|
||||
export {
|
||||
escapeHTML,
|
||||
HTMLString,
|
||||
markHTMLString,
|
||||
unescapeHTML,
|
||||
} from './escape.js';
|
||||
export { escapeHTML, HTMLString, markHTMLString, unescapeHTML } from './escape.js';
|
||||
export type { Metadata } from './metadata';
|
||||
export { createMetadata } from './metadata.js';
|
||||
export {
|
||||
|
|
Loading…
Reference in a new issue