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

feat: support of Tana internal format #472

Merged
merged 14 commits into from
May 14, 2023
48 changes: 48 additions & 0 deletions config.tana.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"enexSources": [
"./test-template.enex"
],
"templateFile": "./sampleTemplate.tmpl",
"outputDir": "out",
"keepOriginalHtml": false,
"isMetadataNeeded": false,
"isNotebookNameNeeded": false,
"isZettelkastenNeeded": false,
"useZettelIdAsFilename": false,
"plainTextNotesOnly": false,
"skipLocation": false,
"skipCreationTime": false,
"skipUpdateTime": false,
"skipSourceUrl": false,
"skipWebClips": false,
"skipTags": false,
"useHashTags": false,
"outputFormat": "ObsidianMD",
"taskOutputFormat": "ObsidianMD",
"keepImageSize": "ObsidianMD",
"skipEnexFileNameFromOutputPath": false,
"keepOriginalAmountOfNewlines": false,
"urlEncodeFileNamesAndLinks": false,
"pathSeparator": "/",
"sanitizeResourceNameSpaces": false,
"haveEnexLevelResources": false,
"haveGlobalResources": false,
"useUniqueUnknownFileNames": false,
"replacementChar": "_",
"generateNakedUrls": true,
"logseqSettings": {
"journalNotes": false
},
"obsidianSettings": {
"omitLinkDisplayName": false
},
"nestedTags": {
"separatorInEN": "_",
"replaceSeparatorWith": "---",
"replaceSpaceWith": "-"
},
"resourcesDir": "",
"keepMDCharactersOfENNotes": false,
"monospaceIsCodeBlock": false,
"dateFormat": "YYYY-MM-DD"
}
58 changes: 19 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions sampleTemplate_tana.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{created-at-block}Creation date: {created-at}{end-created-at-block}
{updated-at-block}Last modification date: {updated-at}{end-updated-at-block}
{content-block}{content}{end-content-block}

4 changes: 4 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

export const tanaCodeBlock ='<YARLE_TANA_CODE_BLOCK>';
export const checkboxTodo = '- [ ]'
export const checkboxDone = '- [x]'
Loading