Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single file mode formatting issues #205

Open
samanthavbarron opened this issue Mar 7, 2024 · 1 comment
Open

Single file mode formatting issues #205

samanthavbarron opened this issue Mar 7, 2024 · 1 comment

Comments

@samanthavbarron
Copy link

It seems like wrapping the entries when in "Single File" mode, as defined here

const sectionStart = `%%${article.id}_start%%`
const sectionEnd = `%%${article.id}_end%%`
contentWithoutFrontMatter = `${sectionStart}\n${contentWithoutFrontMatter}\n${sectionEnd}`

limits the ways that the file can be formatted. For example, I was trying to use the Article Template:

- [{{{title}}}]({{{originalUrl}}})

But this produces the following output for me

---
- id: 0af147cf-8a48-4fc5-8a7f-f874bf4e1b6e
- id: 68a3f1ed-d84d-4985-9544-716dc7321f49
- id: 79b26e2b-1cbe-46a2-a393-2b6bf15058c4
---

%%0af147cf-8a48-4fc5-8a7f-f874bf4e1b6e_start%%
- [digitalblossom/alternative-frontends: 🔐🌐 Privacy-respecting web frontends for popular services](https://github.com/digitalblossom/alternative-frontends)
%%0af147cf-8a48-4fc5-8a7f-f874bf4e1b6e_end%%

%%68a3f1ed-d84d-4985-9544-716dc7321f49_start%%
- [ThePenguinDev/Proxigram: A privacy focused and open source front-end for Instagram - Codeberg.org](https://codeberg.org/ThePenguinDev/Proxigram)
%%68a3f1ed-d84d-4985-9544-716dc7321f49_end%%

%%79b26e2b-1cbe-46a2-a393-2b6bf15058c4_start%%
- [Scheduled Archiving — ArchiveBox 0.7.3 documentation](https://docs.archivebox.io/en/latest/Scheduled-Archiving.html)
%%79b26e2b-1cbe-46a2-a393-2b6bf15058c4_end%%

I'm not sure why the %% wrapping is there, but it would be great to be able to disable the newlines/IDs.

@samanthavbarron
Copy link
Author

Similarly, I can't seem to figure out how to disable the IDs from being reported in the frontmatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant