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.

Question: is there any way to keep every html entities as-is?

See original GitHub issue

Consider the following markdown:

stuff Á stuff

The HtmlRenderer returns:

stuff Á stuff

If I use \Á it returns:

stuff Á stuff

Is there any config to make it return as below?

stuff Á stuff

In other words, don’t change any HTML Entity at all?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vschcommented, Mar 25, 2017

@acdcjunior, all suggestions are greatly appreciated. Especially ones from first time users.

I am still surprised by how little feedback I get from users about their experience and what would help them get started. I keep adding their suggestions as they come in.

I will add a simple working sample at the top of the read me file with links to the Wiki in bold so first time users cannot miss it. I don’t think that a basic sample will take too much space. I will add instructions on flexmark-all dependency which will add all core and extensions so there is no need to fiddle with individual modules to reduce start up complexity. Setting up a working project should be simple in any environment.

0reactions
acdcjuniorcommented, Mar 25, 2017

Awesome, I got it working and it is beautiful, thanks a lot!

Now, since we’re at it and you are such a nice guy, as payback, here goes a suggestion (no need to reply to this, just take it into consideration):

I have an app that used marked (js) as md->html engine. Earlier today I decided I’d better use a java-based one. Googled it a bit, found pegdown. But their readme said the project was deprecated and recommended flexmark-java; that’s how I came to know your tool.

Now to the problem/suggestion: when evaluating a tool, we usually don’t read stuff, the first thing we want is a running example. I googled for a sample of flexmark-java and found https://github.com/vsch/flexmark-java-sample. Nice, but… actually, that project is a bit frustrating. Though I’m an IntelliJ user, I still expected the project to be a maven (or gradle) one, not a “raw” IntelliJ module. The referenced libs are 0.4.17 (so old, I noticed later…) and the Main class has a ton of “detailed” stuff (aka unecessary/too much for me at that moment). Now, of course, when you wrote that class your goal was probably not for it to be a “hello world” class, but bear with me, I’m trying to show you how it felt for me at that point.

The good news is I eventually managed to get it working. What actually helped me a lot was this HtmlRendererTest unit test class I stumbled upon. It uses the parser/renderer in a very simple manner (without any additional options) and was perfect for my needs at the moment.

As the day went on I even found your great wiki and its Usage page! When I saw it, I thought: that is what I needed in the first place.

So, cutting to the chase, my suggestion is: consider putting a running example as the first thing (or close to the top) of your readme. I reckon the code may take too much space, if you feel that way, place at least a link to the wiki page saying something link “For quick sample and usage examples, click here”. I think it would benefit newcomers a lot.

So, that’s it. Just a quick report. I hope you don’t get it as criticism, because it is not at all, your tool is great and I got it working very quickly! Anyhow, thanks again!! As said, no need to reply, this is just what I thought as a way of saying thank you for your kind feedback on this issue! 😃 cheers!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to keep entities intact while parsing html with ...
An alternative solution is to use DOMDocument->saveHTMLFile() (which doesn't convert HTML entities) and read the contents of the saved file ...
Read more >
HTML Entities - W3Schools
Character entities are used to display reserved characters in HTML. &#entity_number; To display a less than sign (<) we must write: < or...
Read more >
&nbsp and HTML Space Challenges and Tricks | Mailtrap Blog
First, and maybe most importantly, cells defined this way don't always retain their height. Some clients will respect them; others will omit the...
Read more >
Criminal Intelligence - Manual for Analysts | UNODC
The problem for investigators is that no matter how good the system used to store all this information, they are always limited by...
Read more >
HTML Options - Quarto
Specify a prefix to be added to all identifiers and internal links in HTML and DocBook output, and to footnote numbers in Markdown...
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