Remark: underscore issue in highlighted code within style

Created on 30 Jan 2018  路  7Comments  路  Source: gnab/remark

Doing
````
.center[

print(test_)
print(another_test)

]
``` doesn't render correctly. The trailing underscore intest_is parsed as markdown, I think? Removing thecenter` style fixes it.

bug

All 7 comments

@amueller, I can't reproduce the bug.

See codepen.io/tripu/pen/NyGWEY.

Can't reproduce either :-/ sorry for the drive-by. I'll try to create a reproducible example next time. Thanks for the quick reply.

Ok I reproduced:
````
.smaller[

voting = VotingClassifier([('logreg', LogisticRegression(C=100)),
                           ('tree', DecisionTreeClassifier(max_depth=3, random_state=0))],
                          voting='soft')
voting.fit(X_train, y_train)
lr, tree = voting.estimators_

]
test
````

https://codepen.io/acmueller/pen/VQrjJJ

Adding a blank line after the ] of .smaller fixes it... (as do many other things)

Interesting, @amueller.

So the .smaller[] block has to have either a blank line, or nothing after it, for the code to be rendered okay…

I don't have the time right now to debug (please live with your workaround for the moment, and thanks for reporting!)

No worries, I can totally live with the work-around. Just thought it was worth reporting.

I'm slightly amused by your "interesting" reply, which is usually what I'm replying to issues when I have no idea what's going on.

@amueller: it's interesting that you thought that.

:wink:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stephentu picture stephentu  路  5Comments

sinedied picture sinedied  路  5Comments

pinkomeo picture pinkomeo  路  4Comments

benjie picture benjie  路  4Comments

pat-s picture pat-s  路  8Comments