Skip to content
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

Any reason escape_html (or html.h) doesn't exist in a header file? #136

Closed
gjtorikian opened this issue Jun 7, 2016 · 2 comments
Closed

Comments

@gjtorikian
Copy link

For the Commonmarker Ruby wrapper, I've been using houdini_escape_html0 directly to implement escaping HTML. I forgot why, so today when I changed it to escape_html, I got the following error:

dyld: lazy symbol binding failed: Symbol not found: _escape_html
  Referenced from: /Users/gjtorikian/Development/commonmarker/lib/commonmarker/commonmarker.bundle
  Expected in: flat namespace

html.h doesn't exist, but houdini.h does. Is there any specific reason for this? In the end my code does end up just calling houdini directly as escape_html does but I'd like to rely on the official libcmark pattern.

If there isn't a specific reason, I'll open a PR.

@jgm
Copy link
Member

jgm commented Jun 7, 2016

Neither of these is part of the public API. The declaration
for the main function defined in html.c lives in cmark.h,
which is the only public header file.

+++ Garen Torikian [Jun 07 16 14:33 ]:

For [1]the Commonmarker Ruby wrapper, I've been using
houdini_escape_html0 directly to implement escaping HTML. I forgot why,
so today when I changed it to escape_html, I got the following error:
dyld: lazy symbol binding failed: Symbol not found: _escape_html
Referenced from: /Users/gjtorikian/Development/commonmarker/lib/commonmarker/c
ommonmarker.bundle
Expected in: flat namespace

html.h doesn't exist, but houdini.h does. Is there any specific reason
for this? In the end my code does end up just calling houdini directly
as escape_html does but I'd like to rely on the official libcmark
pattern.

If there isn't a specific reason, I'll open a PR.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, [2]view it on GitHub, or [3]mute the
thread.

References

  1. https://github.com/gjtorikian/commonmarker
  2. Any reason escape_html (or html.h) doesn't exist in a header file? #136
  3. https://github.com/notifications/unsubscribe/AAAL5GderZ2dF_K1oA5-pyHCOY1cqg8Zks5qJeO9gaJpZM4IwYjU

@gjtorikian
Copy link
Author

Ah, ok.

CyberShadow pushed a commit to CyberShadow/cmark that referenced this issue Apr 1, 2021
* Adjustments to how the tasklist generation occurs

* hit it until it passes spec

* clean up compiler warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants