Update ESLint rules and resolve bot review feedback #8
No files matched your search
@@ -115,7 +115,7 @@ export class FrontmatterProcessor {
|
||||
// Return content without frontmatter, but add title as frontmatter for Pandoc
|
||||
|
|
||||
let processedContent: string;
|
||||
if (this.noteTitle) {
|
||||
const titleFrontmatter = yaml.dump({ title: this.noteTitle });
|
||||
const titleFrontmatter = yaml.dump({ title: this.noteTitle });
|
||||
processedContent = `---\n${titleFrontmatter}---\n${parsed.content}`;
|
||||
} else {
|
||||
processedContent = parsed.content;
|
||||
@@ -182,7 +182,7 @@ export class FrontmatterProcessor {
|
||||
if (this.preserveFrontmatter) {
|
||||
// Reconstruct frontmatter with modified title
|
||||
if (this.noteTitle) {
|
||||
const newFrontmatter = yaml.dump(frontmatter);
|
||||
const newFrontmatter = yaml.dump(frontmatter);
|
||||
let processedContent = content.replace(this.FRONTMATTER_PATTERN, `---\n${newFrontmatter}---\n`);
|
||||
|
||||
// Add printed frontmatter if requested
|
||||
@@ -201,7 +201,7 @@ export class FrontmatterProcessor {
|
||||
} else {
|
||||
// Add title as frontmatter for Pandoc even when not preserving original
|
||||
if (this.noteTitle) {
|
||||
const titleFrontmatter = yaml.dump({ title: this.noteTitle });
|
||||
const titleFrontmatter = yaml.dump({ title: this.noteTitle });
|
||||
let processedContent = content.replace(this.FRONTMATTER_PATTERN, `---\n${titleFrontmatter}---\n`);
|
||||
|
||||
// Add printed frontmatter if requested
|
||||
@@ -324,6 +324,7 @@ export class FrontmatterProcessor {
|
||||
}
|
||||
} else {
|
||||
// Handle null, undefined, or any other unexpected types
|
||||
console.debug('FrontmatterProcessor: Unexpected type in frontmatter display formatting', `key: ${key}, type: ${typeof value}`);
|
||||
formattedValue = '';
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ export class TypographySection implements ModalSection {
|
||||
// Font size settings are created after font dropdowns to preserve logical ordering
|
||||
this.createFontSettings(state).catch(error => {
|
||||
console.error('Failed to create font settings:', error);
|
||||
// Font settings will fall back to default fonts if this fails
|
||||
// If font loading fails, getAvailableFonts will use hardcoded fallback fonts
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user
⚠️ Potential issue | 🟡 Minor
Fix indentation inconsistencies.
These lines appear to have extra leading whitespace. Ensure consistent indentation throughout the file.
Apply this diff to fix line 118:
Apply similar fixes to lines 185 and 204:
Also applies to: 185-185, 204-204
🤖 Prompt for AI Agents
✅ Addressed in commit
efbff4e