-
Notifications
You must be signed in to change notification settings - Fork 15
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
Improve notes field on collection show page #795
Comments
Note: This should be changed anywhere this field shows up, i.e. also on the Directory "feature collections" widget. @Evan-Leon is the EOL -> |
Yes, that should be doable, will move this up the priority list |
Testing out some css commands that looks like it should do this, but doesn't look to be working
|
@rahulbot do any of the above work better? or should we move forward with markdown approach? |
None of those seem to be adding a break in between the lines in the input text. I was imaging a simple hack like this example I made: https://jsfiddle.net/cu6f8dyr/33/#&togetherjs=GF4DGO258J That just splits on var theTextArea = document.getElementById("description");
var sentences = theTextArea.value.split("\n");
var htmlToShow = "";
sentences.forEach(s => htmlToShow += `<p>${s}</p>`);
var theOutputElem = document.getElementById("output");
theOutputElem.innerHTML = htmlToShow; We could read the field and render it as Markdown text, but that seems like more work. |
Change the collection "notes" field to respect EOL (changing EOL->
<br>
) perhaps? Or be fancier and parse/render it as Markdown?Lets try making the notes field render as markdown
ChatGPT assist 😅 :
: This suggests converting EOL characters (newline characters) to HTML line breaks (
), which will ensure that the notes field respects line breaks in a web display.
The text was updated successfully, but these errors were encountered: