-
Notifications
You must be signed in to change notification settings - Fork 31
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
Escape underscores on template labels #529
Conversation
Conflicting PR. Removed from build OMERO-plugins-push#311. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-plugins-push#312. See the console output for more details.
|
I have a question regarding the documentation in the "Tips". It is written that to make a text italic, you need to use one start *italic* but it is also working with underscores _italic_. Should we add the two options in the tips ? |
Yes, tips improvements sounds good. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tips look good and underscore escaping is working as expected.
I just had a final thought/question before I merge this... I'm undecided by this:
So, I'm happy to stick with the existing behaviour, but just thought I'd ask the question? Also, I think once this is merged, we are close to getting all this work released as https://github.com/ome/omero-figure/milestone/16. We could consider #524 too (needs merge conflicts fixed). |
I see your point... I'm also thinking about a different solution to use the markdown. By default, nothing is interpretated as markdown. If the user introduce |
OK, agreed. 👍 |
Fix part of issue #486, related to
I didn't change much because I think the markdown reading need to be preserved (see PR #481 (comment)).
For each label added from a template (tags, channel name and key-values only ; image and dataset name are correctly handled), the underscore is escaped with a backslah
replaceAll("_", "\\_")
. This enables a correct display of the label in omero.figure and it is compatible withFigure-to-pdf.py
(_
and\_
are identically interpretated in the script).I've also integrated this feature in the PR #528.