Skip to content

How can I add a timestamp before the note title to upload ? #179

Discussion options

You must be logged in to vote

I ended up using Hugo for another static site generation that doesn't need a timestamp.

Im struggling with text replacement not working thought.

I set up this input : //(\[\[([^\]]+)\]\])//
And this output : //[$2]({{< ref "$2" >}})//

But my links are not converted while uploading, I don't understand why.

Edit : I suspect a bug somewhere in the replace text, my regex should be good.

Edit : The issue was the number of //, as stated I should enclose the text with "//", but in the end it's only one of them, not two slashs.

Working solution :

  • input : /\[\[([^\]]+)\]\]/
  • output : [$1]({{< ref "$1" >}})

But now I'm facing issues with attachments, it's never ending.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@mathisgauthey
Comment options

@Mara-Li
Comment options

@mathisgauthey
Comment options

@mathisgauthey
Comment options

Answer selected by mathisgauthey
@Mara-Li
Comment options

@mathisgauthey
Comment options

@Mara-Li
Comment options

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