question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Requests] Accept options in the placeholder

See original GitHub issue

I would like to pass some options directly to the placeholder:

[toc level=2]

It would allow us to set different settings per note in the note taking app Joplin.

Would that be possible?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:22 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
nagaozencommented, Jul 23, 2019

I made a try in this feature and I’d it working with some constraints:

  • only works by default for the new $<toc...> syntax, where … is a special JSON. e.g. $<toc{"level":2}>
  • it won’t accept spaces inside the JSON
  • it won’t accept changing the slugify function, because the inline options are JSON compatible
  • it won’t accept the characted ‘}’ inside the inline options
  • changing level, as suggested in the initial request, will break markdown-it-anchorwhen the same content is used in many headers. e.g. # header\n\n## header\n\n###header

Anyone want to try? It’s available at inline_options branch. Are the constraints reasonable?

1reaction
tessuscommented, Sep 27, 2020

@nagaozen never mind the previous comment (which I have deleted). I screwed up. All good.

Read more comments on GitHub >

github_iconTop Results From Across the Web

arduino-esp32/Feature-request.yml at master - GitHub
arduino-esp32/.github/ISSUE_TEMPLATE/Feature-request.yml ... placeholder: eg. ... all the resources above before opening a new Feature request. options:.
Read more >
Don't Use The Placeholder Attribute - Smashing Magazine
The placeholder attribute contains a surprising amount of issues that prevent it from delivering on what it promises. Let's clarify why you ...
Read more >
When creating a text field, automatically fill it with lorem ipsum.
Currently, I have to leave the app, go to a third-party placeholder text generator, copy, return to the app and paste. Save Submitting......
Read more >
Request : Options to Featured boxes - Cryout Creations
Would be good to have the option to choose if one wants to show the latest, random or most popular posts when using...
Read more >
Placeholder text in widget - Atlassian Community
Also, currently, there is no option to add a placeholder text for fields in Service Desk. We have a feature request suggesting the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found