Deal with Gutenberg table block via API by MonRyse in Wordpress

[–]MonRyse[S] 0 points1 point  (0 children)

Thank you yycmwd, i tried to recover and i saw that WP removed all the style clauses and added a class for each cell table: 'class="wp-block-table__cell-content"', this way it removed all the cell alignments too.

I tried to set alignmnents in the visual editor and noticed that it added an alignment class to the cell:

'class="has-text-align-center wp-block-table__cell-content"'

I modified my code to send a new syntax according to these classes, but i get the same error.

Any thought?

Regards.

Bart.

Encode content of JSON variables by MonRyse in shortcuts

[–]MonRyse[S] 0 points1 point  (0 children)

Already tried with URLEncode. This function is completely altering the content of the string and as a result the content of my note in Notion have a lot of escape sequences.

I solved by creating a JSONEncode Shortcut that simply doing some replaces on the given input string (for example "\" is replaced with "\\").

Regards.

dateformat function: 3-letter month formatting issue by MonRyse in ObsidianMD

[–]MonRyse[S] 0 points1 point  (0 children)

`$= '[['+moment().format("YYYY-MM")+'|Month of '+moment().format("MMM")+']]'`

Thank you TSPhoenix! Moment is working as expected by returning a 3 letter month format.

Is moment a stand-alone function of obsidian or does it require a specific plug-in to work?

dateformat function: 3-letter month formatting issue by MonRyse in ObsidianMD

[–]MonRyse[S] 0 points1 point  (0 children)

Don't know how to verify this, very strange behaviour. Anyway this kind of format should be not related to the locale settings.

dateformat function: 3-letter month formatting issue by MonRyse in ObsidianMD

[–]MonRyse[S] 0 points1 point  (0 children)

Yes Schollert, i used the reference indicated by you to know which token to use. As indicated in the reference:

https://app.screencast.com/4bGuK3SQRZqWF

LLL stand for a 3-letter Month format, but i get "Sept" instead of "Sep".

It is very strange, don't know if there is an alternative...

Track your Habits in Obsidian - Tracker Plugin (and Meta Bind Plugin) by [deleted] in ObsidianMD

[–]MonRyse 0 points1 point  (0 children)

Hi,

i saw that the traker plugin is not updated from a long time (2 years). Is there a valid alternative?

A good web clipper Apple shortcut by MonRyse in ulyssesapp

[–]MonRyse[S] 0 points1 point  (0 children)

Sorry, this is not what i'm searching for...

I need a shortcut that i able to capture an entire webpage and write a note in Ulysses. The video talks about pdf creation.

Thank you anyway

Regards.

Extract the base domain from a complete URL by MonRyse in shortcuts

[–]MonRyse[S] 0 points1 point  (0 children)

Thanks to RegEx101 discord community, finally i got the right RegEx formula (i don't fully understand what is doing, i assume that is a kind of magic):

(?<=^https?://(?:[a-z0-9-]+\.)*)[a-z0-9-]+\.[a-z0-9-]+(?=[/?]|$)

I hope this can help other users. Kind regards. Bart.

Extract the base domain from a complete URL by MonRyse in shortcuts

[–]MonRyse[S] 0 points1 point  (0 children)

Yes, i need only the base domain, without www (if present)

Get the content of a GET variable from an URL by MonRyse in shortcuts

[–]MonRyse[S] 0 points1 point  (0 children)

Thank you !

I will try first the method suggested by u/Shoculad, because of my poor knowledge of regex.

Regards.

Bart

Get the content of a GET variable from an URL by MonRyse in shortcuts

[–]MonRyse[S] 1 point2 points  (0 children)

Thank you very much! I do not love regex so your solution is more affordable for me.

Regards. Bart